You can use the component.hasBeenRendererd() method to determine if it
is the first time or not.

-Matej

On 7/24/07, Carlos Pita <[EMAIL PROTECTED]> wrote:
> > Erm, how would you implement that?
>
> I'm overriding onAttach and setting a flag for doing initialization
> just during the first attachment. Is this wrong?
>
> > I think you should use IComponentOnBeforeRenderListener in this case
>
> Still, I would have to keep the "is first time?" check, wouldn't I? I
> think that's the mistmatch between current events and sort of
> postinitialization: they are executed upon every request.
>
> Cheers,
> Carlos
>
>
> > (and note there is also IComponentOnAfterRenderListener).
> >
> > Eelco
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to