SF 2.0 Explicit navigation

Explicit navigation in JSF is setting the navigation rule in the JSF-CONFIG.xml. We have described an example below to describe the explicit navigation. We created a landing page called index.xhtml which has two buttons, home and dashboard as shown below. When a user clicks the button home, the page moves to home.xhtml and when a user clicks the button dashboard, the page moves to dashboard page using the navigation rules mentioned in the faces-config.xml.

022616_0425_JSF20Explic1 JSF 2.0 Explicit Navigation


Mentioned two command button, where action attribute point to the managed bean goHome() and goDashboard()


Managed Bean










Download Source Code:  JSF Page navigation

govindan JSF 2.0 Explicit Navigation
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.0 Explicit Navigation
Connect me
By | 2016-02-26T00:12:47+00:00 February 25th, 2016|Categories: JSF|0 Comments
Like us on Facebook.