Hi,
I have a MainNavBar with NavItems in it, and I've mimicked the code I found in one the SpiffyUI sample projects.
I've created a somewhat different event handler though:
@Override
public void itemSelected(NavItem item)
{
System.out.println("Item ID: " + item.getId());
if (item.getId().equals("abc"))
{
System.out.println("Inside abc");
}
else
{
System.out.println("Inside def");
}
}
If I have two different NavItems with IDs "abc" and "def", when I choose "abc", in the console, I'll see: "Item ID: abc" one time. If I click the abc NavItem again, in the console I will again get "Item ID: abc", as expected.
However, once the abc NavItem is selected, if I select the def NavItem, I see in the log that "Item ID: def" gets printed twice.... This is quite an issue because I have values changing inside the event handler and I don't want things double counted.
Has anyone else run into this issue?