Hi,
I recently tried the following in a panel's markup:
div wicket:id=menu/div
add(new MenuPanel(menu));
and in MenuPanel.html:
wicket:panel class=menuBar ... /wicket:panel
Unfortunately the class attribute was not put in the result. It was
even silently ignored!
WDYT, is
Hi Erik,
The wicket:panel construct will be stripped entirely of course. Where
would you expect the class applied to a wicket:panel to appear - are
you suggesting it should be added to the containing div?
So:
div wicket:id=menu[menu]/div
And:
wicket:panel class=menuBarContents of
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
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
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.
--