From an application developer's point of view, a JSF application consists of a series of JSP pages containing custom JSF tags, one or more JSF managed beans, and a configuration file named faces-config.xml
. The faces-config.xml
file declares the managed beans in the application, as well as the navigation rules to follow when navigating from one JSF page to another.
To create a new JSF project, we need to go to File | New Project, select the Java Web project category, and Web Application as the project type.
After clicking Next>, we need to enter a Project Name, and optionally change other information for our project, although NetBeans provides sensible defaults.
On the next page in the wizard, we can select the Server, Java EE Version, and Context Path of our application. In our example we will simply pick the default values.
On the next page of the new project wizard, we can select what frameworks our web application will...