Could you attach a simple page that reproduces this?

 - Ville


daniel joyce wrote:
> 
> I find that if my template uses a field in the backing model java file
> that hasn't been inited yet, it throws exceptions in when rendering.
> 
> Is there a reason the tml file is rendered/reified before the backing
> model class?
> 
> I usually have to stick a dummy instance or do some dummy
> initialization via PageAttached or PageLoaded, so the renderqueue is
> happy, before the real values are apparently set up via
> onPassivate/onActivate, or being passed in from a previous page via a
> initialize or set method.
> 
> I can't think of any good reason that the renderqueue should run
> before the page values it uses are even inited. It's a big source of
> frustration and bugs.
> 
> One good thing, would be a document on the order of the following calls.
> 
> PageLoaded
> PageAttached
> PageDetached
> OnActivate
> OnPassivate
> The render methods.
> 
> The render flow is well documented. How Activate/Passivate, external
> initialization ( via called a setup parameter on the page, say
> "SomePage.set(SomeValue) play with
> PageLoaded/PageAttached/PageDetached isn't.
> 
> -Daniel
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-rendering-of-the-template-done-before-initialization-of-the--backing-model--tp23130905p23131270.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to