Thank you, Igor!!!

On Sat, Jan 9, 2010 at 2:42 AM, Igor Vaynberg <igor.vaynb...@gmail.com> wrote:
> 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
> <anton.veretenni...@gmail.com> 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: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to