File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Redirct of JSF page

Jeff Calusinski
Greenhorn

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.

Cheers
-Jeff
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:

JSF

MyBean

faces-config.xml
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?

cheers,
Sudhakar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Redirct of JSF page