Before you start
This tutorial is written for Web developers or Web site builders who want to quickly learn how to use IBM® Rational® Application Developer Version 6.0 to build Web applications that use JavaServer Faces (JSF) technology. This tutorial assumes a basic knowledge of HTML and the Java™ language. However, because Rational Application Developer is easy to use, you'll find the tutorial easy to follow even if you're a beginner to HTML and the Java language.
JSF is an application framework for creating Web-based user interfaces (UIs). This tutorial illustrates how to develop a Web application using JSF technology with a focus on the visual tools provided for building Faces pages within Rational Application Developer Version 6.0. It shows you how to use the JSF tags, how to define validation within your Web forms, how to define navigation between the different Web pages, and how to define what takes place when a button is clicked. Finally, the tutorial shows you what happens behind the scenes, what JSF constructs Rational Application Developer generates, and how all this works. While you will learn the basics of JSF, you won't become an expert in JSF and its very large feature set. For a great introduction to JSF, see the developerWorks tutorial, UI development with JavaServer Faces, by Jackwind Li Guojie.
The tutorial uses a simple application -- the messaging center. Using the messaging center, users can log in and view messages that have been sent to them. They can also send messages to any other user that has access to the messaging center. Because JSF technology brings visual graphical user interface (GUI) development to Web applications, the focus is from the "outside-in" -- that is, starting with the pages, then filling in the blanks. Therefore, you first design the pages, then assign values to attributes belonging to components on your page and write only code that is not generated on your behalf.
The messaging center application you create is not complete, because the purpose of the tutorial is to show you how to use JSF within Rational Application Developer. So, you won't spend any extra time making the application complete unless it teaches you something about JSF.
The tutorial takes you through the entire development and packaging lifecycle. You will:
- Create a JSF project and your first JSF page for allowing users to log into the messaging center.
- Learn how to use the palette and the Attributes Editor to design pages.
- Learn about user interface (UI) components, validation, error handling, and navigation.
- Learn all about Backing Beans, which are classes that Rational Application Developer generates in support of UI components. You will put your event-handling code inside this bean.
- Learn about Managed Beans and models and see how to manage data that needs to be shared among all pages. You will also see how to use the JSF Expressions Language (JSF EL) to bind components to data.
- Build the inbox page and use a fairly complex data grid component.
- Finish building the application, test it, package it an as Enterprise Archive (EAR), and learn how to install it on a computer running IBM WebSphere® Application Server.
If you are a complete newbie to the Java programming language, some of these concepts might be easier to follow if you have a basic understanding of servlets and JavaServer Pages (JSP) technology. See Resources for some links on these topics. Otherwise, while this tutorial does not aim to be a complete overview of JSF, it does give you a pretty good overview of the main features. For more information on JSF, see Resources for some excellent tutorials and sources.
To run the examples in this tutorial, you need Rational Application Developer Version 6.0. You can download the latest trial version of Rational Application Developer Version 6.0 at no charge.

