File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Redirct of JSF page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Redirct of JSF page" Watch "Redirct of JSF page" New topic

Redirct of JSF page

Jeff Calusinski

Joined: Apr 21, 2005
Posts: 6
I am using Rational App Dev and I am trying to figure out how to get my JSF page to redirect to another page if all of the required information is not present. I am trying to prevent errors when a user bookmarks my JSF pages. I mention Rational, because when JSF pages are created, the backing bean is an auto generated bean in the pagecode package.

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Let the action method return a String. This will be handled by the navigation case in the faces-config.

Basic example:



Sudhakar Guntaka
Ranch Hand

Joined: Nov 21, 2004
Posts: 46
Hello Jeff,

Bauke's post seems to be a good solution. Does that solve your problem?

I agree. Here's the link:
subject: Redirct of JSF page