We ran into the same problem.  As far as I can tell, the only way to guarantee 
this ordering is to use override prepareForRender on the component, and not use 
PageBeginRenderListener.
 
jeff

________________________________

From: Scott Russell [mailto:[EMAIL PROTECTED]
Sent: Tue 1/3/2006 10:05 PM
To: [email protected]
Subject: Guaranteed order of PageBeginRender



I am finding problems with the use of PageBeginRender.

If you use the listener on nested components as well as the nesting page, one
would expect the nesting page's PageBeginRender to be called first, then that
of the nested components, from outer to inner. However, it appears that the
inner components are called first before the page.

This causes problems because I want to initialise some page properties within
the page's PageBeginRender, which the nested components rely on. At the
moment I am getting NullPointerExceptions because of this event ordering.

Shouldn't the PageBeginRender listeners be called outer to inner? Or is there
another way to avoid this sort of problem?

regards,
Scott

---------------------------------------------------------------------
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