Ok. If my phaseId = RENDER_RESPONSE, beforePhase() is too soon to modify the
component and afterPhase() is too late? That would seem like a weakness in
the spec to me.

-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 27, 2006 10:26 AM
To: MyFaces Discussion
Subject: Re: Help me understand component lilfecycle please.


On 4/26/06, Neuman, Ben J., A&M IRM <[EMAIL PROTECTED]> wrote:
> My UIComponent is 'bound' to a property on a managed bean, which is also a
> PhaseListener. In any (all) phases, I call
myUIComponent.setRendered(false).
> When the appropriate view is first requested (via commandLink), the
> component is rendered. The component is not rendered on all subsequent
> requests.

On the first request, the component doesn't exist.   It's creating
during the renderResponse phase, so trying to call setRendered()
before this phase won't work (no component) and calling it after this
phase is too late (already rendered).

Reply via email to