Hi,
I am not sure if this is a bug... in a TabFolder I am trying to load different menus when each TabItem is selected. Say there are two tabitems tab1 and tab2. When tab1 is selected I used loadMenuContent to load the following (from a xml):
<screenFirstmenu>
Options
<menupopup>
<menu>
Submenu
<menupopup>
<menuitem onAction="action1">item1</menuitem>
<menuitem onAction="action2">item2</menuitem>
</menupopup>
</menu>
</menupopup>
</screenFirstmenu>
When tab2 is selected, loads:
<screenFirstmenu onAction="action3">
item3
</screenFirstmenu>
I was navigating from tab1 to tab2 and tab2's screenFirstMenu does not respond to onAction. I figured out this is because that tab1's screenFirstmenu had sub menu and menupopups which were not cleaned up/removed so that tab2's screenFirstMenu get confused. I tried to manually remove the submenu and menupopups using cleanUp() and remove(), but it did not work. Any idea on how and why?
Many Thanks!

