Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirct of JSF page

 
Jeff Calusinski
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Jeff,

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

cheers,
Sudhakar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic