This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
Problem passing parameters from one page to another.
Setting Bean property
Creating Drop Down lists in datagrid client component
JSF navigation questions
modeling JSF managed beans on component diagram