You could probably do it in onBeforeRender - but you would need to
keep a boolean flag to check if it's the first render so that you
don't recreate them on a second render....  There was talking of
adding an onBeforeFirstRender method, but I don't think it's happened
yet - you could look for the method to see if I'm wrong.

--
Jeremy Thomerson
http://www.wickettraining.com




On Thu, May 14, 2009 at 12:51 PM, Juan G. Arias <[email protected]> wrote:
> Hi all,
> Is there a way in wicket for separate the object's instantiation phase from
> the inner component's creation phase?
> Just like the "init()" method in application, but for my components.
>
> Another way to see it, just in case it's not clear:
> Is there an already defined contract for component creation, that allows me
> to create the components I will use in some panel/page, but not to do it in
> the Java constructor?
>
> Thanks in advance!
> Juan
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to