right, in your menu panel call setrenderbodyonly(true) and then inside
itis markup have the diiv wth the class attr.

-igor


On Thu, Mar 6, 2008 at 8:09 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> Hi Maurice,
>
>  Nice, I did not think of the setRenderBody option.
>
>  Thanks!
>
>     Erik.
>
>
>  --
>  Erik van Oosten
>  http://day-to-day-stuff.blogspot.com/
>
>
>
>
> Maurice Marrink wrote:
>  > The logic thing would be to add the class to the div:
>  > <div wicket:id="menu" class="menuBar"></div>
>  >
>  > However i can see your point of adding it to <wicket:panel> if you
>  > want to enforce it on all menu's. Sure would be nice if wicket could
>  > automatically transfer anything extra it finds there to the actual
>  > element, but then what would be the behavior if setRenderbodyOnly was
>  > used, they would effectively bypass your enforced css style.
>  > So imo using a div in <wicket:panel> to do this, optionally in
>  > combination with setRenderbodyOnly to get rid of the empty <div
>  > wicket:id="menu"> is the best way to go if you want to force this kind
>  > of stuff.
>  >
>  > Maurice
>  >
>  >
>
>
>
> ---------------------------------------------------------------------
>  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]

Reply via email to