O'Reilly logo

Java EE 7 Recipes: A Problem-Solution Approach by Josh Juneau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3-5. Navigation Based Upon Conditions

Problem

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

Solution

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required