users@javaserverfaces.java.net

Lifecycle: What phase would I place business logic to determine to render a page or jump to a different page?

From: Todd Patrick <Todd.Patrick_at_dtn.com>
Date: Tue, 7 Nov 2006 15:54:53 -0600

JSF Lifecycle. What phase would I place business logic to determine to render a page or jump to a different page? I don't believe I want a Phase Listener, because I only want this to happen once for *one* page. The business logic in a nutshell is as follows: 1.) Get the FacesContext 2.) Get the Application from the FacesContext 3.) Create an object 4.) Create an Application Value Binding to the FacesContext and object 5.) If that is successful, go to page1.jsf 6.) Else continue to render the current jsf page. I believe I could put this logic *before* the Restore View Phase and call FacesContext.responseComplete? Thanks, --Todd ----------------------------------------- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.