3-5. Navigation Based Upon Conditions


Your JSF application contains multiple pages, and you want to set up navigation between them.


Utilize one of the following techniques for performing navigation within JSF applications:

  • Utilize explicit navigation through the use of a JSF managed bean method along with a corresponding faces-config.xml configuration file to control the navigation for your application.
  • Use implicit navigation for specifying the next view to render from within the managed bean.
  • Use implicit navigation by specifying the name of the view to render as the action attribute of a component tag, bypassing the managed bean altogether.

The example in this recipe consists of four JSF views, and each one contains ...

Get Java EE 7 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.