So which Panel method is a best to monitor when that panel is selected? I
need to set a model property for each of my tabs.
Also I tried to stop Wicket from instantiating a new Panel every time a tab
is selected, here is the code:
/* advanced search check box */
add(new AjaxCheckBox("advancedSearch", new
PropertyModel<Boolean>(FindUserAccount.this, "advancedSearch")) {
private static final long serialVersionUID =
-4363834871762525665L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.addComponent(findUserAcountForm);
}
});
/* advanced search container */
final WebMarkupContainer advancedSearchContainer;
add(advancedSearchContainer = new
WebMarkupContainer("advancedSearchContainer") {
private static final long serialVersionUID =
-6418171712342793920L;
@Override
public boolean isVisible() {
return advancedSearch;
}
});
Is that how PanelCachingTab is supposed to be used?
Thanks,
Zhubin
Martin Makundi wrote:
>
> Yes, simply every time your panel is instantiated, it means someone
> navigated to the particular tab. You can monitor this also in your
> panel class.
>
> **
> Martin
>
--
View this message in context:
http://www.nabble.com/Is-there-a-way-to-be-notified-when-a-tab-in-a-TabbedPanel-is-selected--tp21713724p21728481.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]