tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Piterman <rpiter...@gmx.net>
Subject Re: [jira] Created: (TAPESTRY-733) Tapestry should call listeners (such as PageBeginRenderListener) in some predefined order
Date Tue, 01 Nov 2005 20:07:28 GMT
I Usually avoid this kind of initialization by making it happen lazy,
If you would share the scenario... maybe there is a nice solution...
Cheers,
Ron



ציטוט Leonardo Quijano Vincenzi:
> Something like:
> 
> ParentComponent.java:
> 
> @InjectComponent("ChildComponent")
> public abstract ChildComponent getChildComponent();
> 
> ...
> 
> public void pageBeginRender(PageEvent event) {
>     ...
>     getChildComponent().pageBeginRender(event);
> }
> 
> ??
> 
> the child's pageBeginRender() would be called by the parent 
> pageBeginRender implementation, and also, by the usual Tapestry listener 
> cycle (it iterates over every listener and calls everything that 
> implements PageBeginRenderListener.
> 
> Correct me if I'm wrong.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message