Use one of the "on load" tools and run an action per page. In that action redirect if your bean is not initialized.
APIs: onload (onload.xml): http://jsf-comp.sf.net Seam (pages.xml): http://www.jboss.com/products/seam Shale Dialog controller (forget the URL) Each one will allow you to tie an action method to a view ID. Then from the result of your action, issue a navigation redirect -Andrew On 7/10/06, Mike Duffy <[EMAIL PROTECTED]> wrote:
Stated another way: If a user bookmarks a JSF page that is in the middle of page sequence, what is the best way to redirect the user to the first page in the sequence? Mike --- Mike Duffy <[EMAIL PROTECTED]> wrote: > Assume page_B.jsf depends on page_A.jsf. > > The backing bean for page_B.jsf has request scope. The backing bean for page_A.jsf has session > scope. > > In the constructor for the backing bean for page_B.jsf a check is made for the backing bean for > page_A.jsf. > > If the user has first gone to page_A.jsf and made the selections, all is well. However, if the > user bookmarks page_B.jsf, the backing bean for page_A.jsf is not found and a null pointer is > thrown. > > I know that Seam and the Spring webflow address these issues; however, as a simple stopgap, is > it > possible to redirect to a page from the constructor of a backing bean; or is there a better way > to > do this? > > Thx. > > Mike > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

