File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Backing bean to point to bean method and redirect page

 
tom davies
Ranch Hand
Posts: 168
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a form that writes form data to a file.
It uses a method in my managed bean to do this, and is invoked my clicking the submit button.

I now want to be able to redirect the page after the button has been clicked as well as call the method.
Would i do this within my managed bean or on the form page?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17619
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would do this in the backing bean's action method. In the normal JSF scenario, the action method would return the name of a JSF navigation rule indicating the next page to be displayed (or null, to redisplay the current page). Starting with JSF2, implicit rules are also made for JSF view resource names so you can name the target view directly if your prefer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic