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="menuBar">Contents of Panel</wicket:panel>
Would become:
<div class="menuBar">Contents of Panel</div>
Charlie.
On Thu, Mar 6, 2008 at 8:28 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> 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 this desired behavior?
>
>
> FYI, this is my workaround:
>
> <wicket:container wicket:id="menu"></wicket:container>
>
> add(new MenuPanel("menu"));
>
> and in MenuPanel.html:
>
> <wicket:panel>
> <div class="menuBar"> ... </div>
> </wicket:panel>
>
>
>
>
> Regards,
> Erik.
>
>
> --
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]