JavaServer Faces (JSF) TutorialJSF KickStart: A Simple JavaServerFaces Application
In this tutorial, we will show you an example of a JSF application developed without anyspecial IDE. We won't dwell on the theory behind JSF here. There are plenty of sites and books that will do that for you. Instead, we will go quickly into the construction of thissimple application that we hope can form the basis for you to start developing moreadvanced applications.
What Is JavaServer Faces?
Per our promise, we will keep the background simple. JavaServer Faces is a newframework for building Web applications using Java. JavaServer Faces provides you withthe following main features:
•
Page navigation specification
•
Standard user interface components like input fields, buttons, and links
•
User input validation
•
Easy error handling
•
Java bean management
•
Event handling
•
Internationalization supportJSF provides the common plumbing for any Web application allowing you to concentrateon your specific application (instead of worrying about things like how to create a link from one page to another). This will become clearer as we go along.
What Will You Need?
You will need the following to complete this tutorial:
•
JDK 1.4
•
Tomcat 5.0 or any other servlet container (JBoss, Resin, JRun). We will useTomcat in this example.
•
AntWe will provide you with many of the project files so that you don't need to create themyourself. We will be concentrating primarily on the actual JSF application, not oncreating Ant scripts or web.xml files. These files will be provided for you. You will justneed to copy and paste content from this tutorial.