On Thu, Sep 17, 2009 at 1:56 PM, Chris Colman
<chr...@stepaheadsoftware.com>wrote:

> I have a need to 'wrap' some content inside some border style markup,
> specifically within a <li> ... </li> combo but the panel that is being
> inserted may be visible or invisible depending on logic within the panel
> and the current session etc,.
>
> When the 'wrapped' panel is invisible I don't want the <li> .... </li>
> combo wrapper/border to show.
>
> Do borders automatically hide themselves if their 'body' component is
> invisible?
>
> If they don't, what would be the best way to have the border go
> invisible if the child is invisible?
>

How about using <wicket:enclosure child="wrappedPanel"> around the border.

refer
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:enclosure


>
> Would it be better to write a custom 'wrapper' component that assumes a
> single child markup and auto hides itself if it's child is invisible?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to