Tapestry page structure is static.  All of the components inside the @If
"exist", even if they aren't rendered.  Since pageBeginRender is fired
before the rendering even starts, it can't possibly know which of those
components are going to render.

If you instead override AbstractComponent.prepareForRender in your
component, it will only run if the component is going to be rendered.

jeff

-----Original Message-----
From: Phillip Rhodes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 12:16 PM
To: [email protected]
Subject: What happens inside an If component?

It appears that even if the condition of the If component evaluates to
false, the components inside the If component body are still created (at
least the pageBeginRender is invoked).

volative has no effect on this.

Can someone explain what happens inside an If?
Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to