Hi Marc,
Sorry about the delay.
I finally added an
AccordionPanel which takes an
ITab list as constructor's argument (like
TabbedPanel) and that handle 2 events:
- onChanging(AjaxRequestTarget target, int index, ITab tab)
- onChanged(AjaxRequestTarget target, int index, ITab tab)
onChanging event is enabled by default because it (might) serves to load dynamic content (if an AjaxTab is used).
onChanged event can be enabled by overriding
#isChangedEventEnabled(), returning
true.
The title of the selected tab can, then, be retrieved using
tab.getTitle()Thanks to let me know if it suits to your use case.
Best regards,
Sebastien.
PS: wicket-jquery-ui 1.2.3-SNAPSHOT & 6.0.1-SNAPSHOT have been released