You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Mathias P.W Nilsson" <ma...@snyltarna.se> on 2009/03/18 19:50:08 UTC

Disable or hide tabs in AjaxTabbedpanel

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Disable or hide tabs in AjaxTabbedpanel

Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
When hiding the link and the panel the li elements is still visible.
-- 
View this message in context: http://www.nabble.com/Disable-or-hide-tabs-in-AjaxTabbedpanel-tp22585946p22608409.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Disable or hide tabs in AjaxTabbedpanel

Posted by Luther Baker <lu...@gmail.com>.
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 <
martin.makundi@koodaripalvelut.com> wrote:

> Yes, normal isVisible. You need any help with that?
>
> **
> Martin
>
> 2009/3/18 Mathias P.W Nilsson <ma...@snyltarna.se>:
> >
> > 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: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Disable or hide tabs in AjaxTabbedpanel

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Yes, normal isVisible. You need any help with that?

**
Martin

2009/3/18 Mathias P.W Nilsson <ma...@snyltarna.se>:
>
> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org