Developing an Application with JSF 1.2
In this JSF tutorial, we will create and execute a simple web application with JavaServer Faces 1.2. This is most suited for those who develop a JSF application for the first time. This may look terribly descriptive for those who are already familiar with creating and running JSF projects. I am not going to the details of JSF technology here. There are lots of other sites and books that does it. Here my intention is to help you create your 'first' JSF project running on our PC.
You can find ,one of my favorite JSF books here at Amazon.
Just like any other Java Web application, we need Eclipse (I am using version 3.5.1) with Apache Tomcat 6.0 set up in our system.
First thing first, let's start with creating a new Dynamic Web project.
Select File -> New -> Project
Select Dynamic Web project in the Wizard, as shown below, and click Next.
Give Project name BasicJSFProject. Click New button to select the 'Target Runtime'. In the popup window(screen shot is not provided) select the type of runtime environment as ApacheTomacat v6.0. Specify the tomcat installation directory and click Finish. Select the dynamic web module version as 2.5. In the configuration section, select the JavaServer Faces Project v1.2. Click next.
In the wizard , enter the package as, com.user.details and the Name of the class as UserDetails. Click the Finish button.
Select all four attributes to create getters ans setters and Click OK.
How page navigation works in JSF?
How to use resource bundle in JSF?
How to implement Internationalization and Localization in JSF?
How event handling works in JSF?
JSF Request Processing Life Cycle with example.