You almost found it yourself. Use onBeforeRender() + hasBeenRendered() instead of your custom flag.
On Wed, Aug 10, 2011 at 1:23 PM, armandoxxx <armando....@dropchop.com> wrote: > Hey guys ... > > With wicket 1.5 we got events. So far so good but I got a case where i'm > missing after on initialize method call. > > I have lot's of panels on my page, and I create them in onInitialize() code. > But I need to send a 1 time event after all components are initialized. > - problem #1: If I send an event from onInitialize(): not sure that all > components are initialized ! > - problem #2: If is send an event from onConfigure() or onBeforeRender(), > the event get send everytime component is rendered ... > > So current solution is to create a flag in my panels that sendEventOnInit() > method was allready called .. > > but it would be better to have a method onInitialized() | > afterInitialized() (pick your favorite name). > > If someone has better approach, please let me know about it ! > > Kind regards > > Armando > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3732520.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org