Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-14 Thread armandoxxx
my fix was if someone needs it .. Regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3743198.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-12 Thread Bruno Borges
Yes, now I understood. :-) Thanks *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Fri, Aug 12, 2011 at 2:56 AM, armandoxxx armando@dropchop.comwrote: @IGor: I figured it out .. no need for new features. @Bruno: if you cann onAfterInitialize() in onInitialize() you can't be

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-11 Thread armandoxxx
Igor: thank you for your reply and your solution. Could you please discuss this case with other developers and let me know what they think? In my opinion framework should make my job easier not force me to do workarounds to get what I need. Just a thought. Martin: thank you :D Kind regards

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-11 Thread Igor Vaynberg
On Thu, Aug 11, 2011 at 4:35 AM, armandoxxx armando@dropchop.com wrote: Igor: thank you for your reply and your solution. Could you please discuss this case with other developers and let me know what they think? this is the place where the developers discuss things. if any of them want to

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-11 Thread Bruno Borges
Isn't this correct? onInitialize() { super.onInitialize(); ... // whatever I put here would be the same as overriding onAfterInitialize(); } *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 12:35 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Thu, Aug

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-11 Thread armandoxxx
@IGor: I figured it out .. no need for new features. @Bruno: if you cann onAfterInitialize() in onInitialize() you can't be sure all components on the page we're initialized() Regards Armando -- View this message in context:

Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread armandoxxx
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

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread Pedro Santos
Hi Armando, the problem #1 is rather about not have the entire component tree connected already. onInitialize is called when the component is aware of its path to page, at this moment, a triggered even will not reach new nodes addition in the component tree. On Wed, Aug 10, 2011 at 7:23 AM,

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread Martin Grigorov
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

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread armandoxxx
@pedro I know. That's why I didn't put the event call in onInitialize() method ;) @martin: I if use on before render .. my event would be triggered everytime my component renders .. so if I want 1 time event after the component is initialized I have to use somekind of a flag for this event to be

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread Igor Vaynberg
we cant keep building these things because eventually someone will ask for onAfterAfterInitialized() and so on. what we can do is make it easy for you to build your own. you can create your own IComponentOnBeforeRenderListener that checks if the component being rendered is a page and if it is

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread Martin Grigorov
MyPage.java: protected void onBeforeRender() { if (!hasBeenRendered()) { send(...); } super.onBeforeRender(); } On Wed, Aug 10, 2011 at 8:18 PM, armandoxxx armando@dropchop.com wrote: @pedro I know. That's why I didn't put the event call in

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread Igor Vaynberg
this will get called more than once for a component that starts out and remains invisible for a while. -igor On Wed, Aug 10, 2011 at 10:25 AM, Martin Grigorov mgrigo...@apache.org wrote: MyPage.java: protected void onBeforeRender() {        if (!hasBeenRendered()) {            send(...);  

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread Martin Grigorov
That's why I put MyPage.java: above it. I've never tried to make the page invisible :-) On Wed, Aug 10, 2011 at 8:32 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: this will get called more than once for a component that starts out and remains invisible for a while. -igor On Wed, Aug 10,

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread Igor Vaynberg
what if a component is added later during a panel swap? -igor On Wed, Aug 10, 2011 at 10:34 AM, Martin Grigorov mgrigo...@apache.org wrote: That's why I put MyPage.java: above it. I've never tried to make the page invisible :-) On Wed, Aug 10, 2011 at 8:32 PM, Igor Vaynberg

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread Martin Grigorov
Now I'm convinced we need onAfterInitialize() :-) On Wed, Aug 10, 2011 at 8:42 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: what if a component is added later during a panel swap? -igor On Wed, Aug 10, 2011 at 10:34 AM, Martin Grigorov mgrigo...@apache.org wrote: That's why I put