You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Cosma Colanicchia <co...@gmail.com> on 2006/06/09 11:55:42 UTC

PhaseListener and navigation problem...

I'm using a PhaseListener to check if the user is logged on. If it
isn't, I save the view id that was being requested and forward the
user on the login page.

After the login, user has to be returned to his original page. This is
to handle session timeout without returning the user to home page
(usually messing up frames).

Problem: I don't know which phase to use, I only need that the
NavigationHandler has already been called, so that the current view
root is the "next".. but I can't find one.

I see that the handleNavigation is called *after* my RENDER_RESPONSE
aftherPhase method, even if all my pretty lifecycle diagrams says that
navigation is handled between UPDATE_MODEL_VALUES and
INVOKE_APPLICATION. This seems to be true only if the view already
exists (postbacks), but after a session timeout navigation is handled
after any of the available phases.

Is this correct? How can I resolve this problem?

Thank you
Cosma