You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by daniel joyce <da...@gmail.com> on 2009/04/17 06:35:10 UTC

Order of rendering of page versus components in page?

I have a datagrid that is embedded in a page. Its datasource is built
by a method in the page, and the grid component references it through
a property that calls that method.

It seems that method is getting called before the page's OnActivate is
ever called, and the data needed to initialize that datasource is not
entirely available yet..

Are components rendered/setup first before a page is ever activated?

IF so, why? Wouldn't it make more sense for the OnActive to be run
first, to ensure all the passed values are ready, before rendering
components that may depend on them?

-Daniel

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


Re: Order of rendering of page versus components in page?

Posted by Ville Virtanen <vi...@cerion.fi>.
Hi,

if you rely on onActivate, you surely have the corresponding onPassivate
also?

It should work if you do have the onPassivate. If not, please post some code
so we can check it.

 - Ville


daniel joyce wrote:
> 
> I have a datagrid that is embedded in a page. Its datasource is built
> by a method in the page, and the grid component references it through
> a property that calls that method.
> 
> It seems that method is getting called before the page's OnActivate is
> ever called, and the data needed to initialize that datasource is not
> entirely available yet..
> 
> Are components rendered/setup first before a page is ever activated?
> 
> IF so, why? Wouldn't it make more sense for the OnActive to be run
> first, to ensure all the passed values are ready, before rendering
> components that may depend on them?
> 
> -Daniel
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Order-of-rendering-of-page-versus-components-in-page--tp23090925p23092723.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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