Would an enclosure based on an implementation of *link.isVisible*() work for you ... ?
i.e: the enclosure would contain the tab you wish to hide whose visibility would be based on that of the child Link component of the enclosure? *<wicket:enclosure>* - (since 1.3) This tag is useful for filtering markup that surrounds a component but has its visibility dependent on the visibility of that component. Lets take a simple example of where you want to show a table row, but only if a Label is visible. http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html -Luther On Wed, Mar 18, 2009 at 2:06 PM, Martin Makundi < [email protected]> wrote: > Yes, normal isVisible. You need any help with that? > > ** > Martin > > 2009/3/18 Mathias P.W Nilsson <[email protected]>: > > > > Hi, > > > > I need a way to hide or disable a tab for certain conditions. Is there a > way > > of doing this with overriding newLink(java.lang.String linkId, int index) > ? > > I need to get this to work with ajax. > > > > example. > > > > User changes language and I need to disable or hide certain tabs. > > > > -- > > View this message in context: > http://www.nabble.com/Disable-or-hide-tabs-in-AjaxTabbedpanel-tp22585946p22585946.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] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
