JSF2 Page Navigation using PrettyFaces

Pretty Faces is an open source solution to rewrite URL in JSF and J2EE frameworks. It makes the URL pretty and SEO-friendly. In this section, we have mentioned how to navigate one page to another using Pretty Faces

Page1: http://localhost:9090/catgovind/index

Page2:  http://localhost:9090/catgovind/dashboard

Download Required:

Download prettyfaces-jsf2-3.3.3.jar


Add the prettyfaces-jsf2-3.3.3.jar file into your <project>\WEB-INF\lib folder.


Create pretty-config.xml under your <Project>\WEB-INF folder


Edit the pretty-config.xml and add URL-mapping point to your index.xhtml & dashboard.xhtml as shown below



Edit the Faces-config.xml as like below



Create index.xml under WEBCONTENT



Create dashboard.xml under WEBCONTENT


Final Project Structure

Capture-11 JSF 2 Page Navigation using Pretty Faces

JSF and Pretty Faces

 Download Source Code: JSF Page Navigation using Pretty Faces

govindan JSF 2 Page Navigation using Pretty Faces
Connect me


Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
govindan JSF 2 Page Navigation using Pretty Faces
Connect me
By | 2016-08-29T19:48:03+00:00 February 29th, 2016|Categories: JSF|Tags: , , |Comments Off on JSF 2 Page Navigation using Pretty Faces
Like us on Facebook.