O'Reilly logo

Mastering JavaServer Faces 2.2 by Anghel Leonard

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

Configuring navigation

Starting with JSF 2, navigation became much easier. Navigation can be accomplished using:

  • Implicit navigation
  • Conditional navigation
  • Preemptive navigation
  • Programmatic navigation

We can talk for hours and hours about JSF navigation, but there are a few golden rules that save us from falling for the most common mistakes when we need to choose between GET and POST. It might be useful to know that:

  • It is recommended to use the GET request for page-to-page navigation, search forms, URLs that you want to be visible and bookmarkable, and, in general, for any idempotent request. By specification, GET, HEAD, PUT, DELETE, OPTIONS, and TRACE are idempotent.
  • For requests that shouldn't be bookmarkable, use the same view repeatedly (use forward, ...

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