if you do this

border.html
<wicket:border>
<div wicket:id="foo">
<wicket:body/>
</div>
</wicket:border>

notice that the body is inside "foo" but you add children as
border.add("bar") so you are creating a mismatch. you need to reparent
the wicket:body tag. the wicket:body is represented by the
getbodycontainer, so in your border constructor you need to do:
foo.add(getbodycontainer())

-igor

On Thu, Jan 7, 2010 at 12:31 AM, Anton Veretennikov
<[email protected]> wrote:
> Good day,
>
> I'm a bit confused, can't understand what i really need to do after
> getting this warning:
>
> Please consider to change your java code to something like:
> c.add(getBodyContainer()); for the component hierarchy to better
> reflect the markup hierarchy. For example, say that you have a border
> class in which you do: 'WebMarkupContainer div = new
> WebMarkupContainer("roundDiv"); add(div);' you should now do
> 'add(div); div.add(getBodyContainer());'. Please fix this before
> Wicket 1.4
>
> -- Tony
>
> ---------------------------------------------------------------------
> 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