You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dave Schoorl <ma...@cyber-d.com> on 2009/04/05 15:24:22 UTC
Component lifecycle question
Hi list,
I want to create the UI of a MarkupContainer after it has been added to
the component hierarchy, because I need to get to the Page for
information needed in constructing the UI.
MarkupContainer.onBeforeRender() just doesn't smell right and passing
the Page as an argument in the construction of the MarkupContainer is
too bloated. What is the suggested best way to accomplish what I want?
Thanks in advance,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Component lifecycle question
Posted by Igor Vaynberg <ig...@gmail.com>.
add everything in onbeforerender and add a flag so it only gets added once.
-igor
On Sun, Apr 5, 2009 at 6:24 AM, Dave Schoorl <ma...@cyber-d.com> wrote:
> Hi list,
>
> I want to create the UI of a MarkupContainer after it has been added to the
> component hierarchy, because I need to get to the Page for information
> needed in constructing the UI.
>
> MarkupContainer.onBeforeRender() just doesn't smell right and passing the
> Page as an argument in the construction of the MarkupContainer is too
> bloated. What is the suggested best way to accomplish what I want?
>
> Thanks in advance,
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org