Skip to Main Content
Java EE 7 Recipes: A Problem-Solution Approach
book

Java EE 7 Recipes: A Problem-Solution Approach

by Josh Juneau
May 2013
Intermediate to advanced content levelIntermediate to advanced
748 pages
20h 58m
English
Apress
Content preview from Java EE 7 Recipes: A Problem-Solution Approach

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Java EE 7

Beginning Java EE 7

Antonio Goncalves
Beginning EJB 3: Java EE 7 Edition

Beginning EJB 3: Java EE 7 Edition

Jonathan Wetherbee, Chirag Rathod, Raghu Kodali, Peter Zadrozny

Publisher Resources

ISBN: 9781430244257Purchase book