O'Reilly logo

JSF 2.0 Cookbook 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

Bookmarking JSF pages with PrettyFaces

In this recipe, we will explore an open source extension for JSF 1.0 and JSF 2.0 that enables creation of bookmarkable, pretty URLs. Its name is PrettyFaces and it includes some nice features, such as:

  • Page-load actions
  • Seamless integration with Faces navigation
  • Dynamic view ID assignment
  • Managed parameter parsing
  • Configuration-free compatibility with other JSF frameworks

Getting ready

We developed this recipe with NetBeans 6.8, JSF 2.0, and GlassFish v3. The JSF 2.0 classes were obtained from the NetBeans JSF 2.0 bundled library. In addition, we have used PrettyFaces, which provides support for JSF 2.0. You can download this distribution from http://ocpsoft.com/prettyfaces/. The PrettyFaces libraries (including ...

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