JSF2 Page Navigation using PrettyFaces
The Drive is not accessible. Access is Denied on HP Elitebook
The Drive is not accessible. Access is Denied ( Exception while accessing external drive on Windows)
The drive is not accessible. Access is Denied ( Exception while accessing external drive on Windows)
Pretty Faces is an open source solution to rewrite URL in JSF and J2EE frameworks. It makes the URL pretty and SEO-friendly. As an example, We could replace our JSF URLs from /faces/* to /* in 2 minutes. In this section, we have mentioned how to rewrite URL in JSF using Pretty Faces
Simple JSF Page Redirect
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.
This section, we walk through creating a simple JSF page navigation using managed bean. I have used two XHTML pages in this example; that is index page and home page. When a user clicks a button on the index page, the page moves to the home page.
Managed bean is similar to java bean class contains setter & getter methods and business logic. We can use the managed bean class property directly in the JSF pages. A normal java bean can be a managed bean by mentioned annotation @managedbean on top of the class. This section we have described an example of creating a simple managed bean with property and use the property in the XHTML file.
Add zip file in WordPress post
In this section, we have described an example of a simple JSF page navigation. We have used two XHTML pages, that is index.xhtml and home.xhtml. When a user clicks the button in the index.Xhtml, the page move into home.xhtml. Here below the page flow