Before you start
This tutorial shows Java programmers how to build highly interactive Java Platform, Enterprise Edition (Java EE) applications for deployment on Apache Geronimo using the JSF components. The tutorial assumes you'll be using the Eclipse IDE as your development platform.
This tutorial introduces you to Apache Trinidad, a set of complimentary components that will improve the interface of your JSF application. You'll convert the existing front end of your sample application for the sign-up pages of a developer forum to use Trinidad components.
This tutorial is the fourth of a five-part series about building Apache Geronimo applications using JSF. Here's a rundown of the entire series:
- Part 1: Use Eclipse and Apache MyFaces Core to build a basic application introduced you to using Apache's MyFaces implementation of the JSF standard with Geronimo, a free application server (also from Apache). This tutorial showed you how to use the Eclipse IDE's Web Tool Platform (WTP) to build JSF applications.
- Part 2: Using Tomahawk with JavaServer Faces showed you how to integrate Apache Tomahawk components with your Geronimo application. Tomahawk provides several custom components that are 100% compatible with JSF.
- Part 3: Using Ajax4jsf with JavaServer Faces demonstrated how to use Sun's free open source framework, Ajax4jsf, to add Ajax capabilities to your Geronimo application.
- Part 4: Extend JSF with Apache Trinidad components teaches you how to integrate components from Apache Trinidad, the open source version of ADF Faces, with your Geronimo application to enhance your JSF application's interface.
- Part 5: Integrating your JSF Application with Spring shows you how to integrate your JSF applications with the Spring Framework, a popular framework that makes it easier for Geronimo developers to build Java EE applications.
This tutorial is for Java developers who have experience accessing back-end systems for data extraction or manipulating. Furthermore, a basic understanding of SQL is required. Ideally, as a developer you'll have experience with a prior version of one or more of the Java Database Connectivity (JDBC) APIs, utilizing interfaces, such as ResultSet and Connection. In addition, you should have a basic understanding of JavaServer Pages (JSP) technology.
You need the following tools to follow along with this tutorial:
- Geronimo, Apache's Java EE server project. Geronimo comes in Tomcat and Jetty flavors, depending on your needs. We used the Jetty flavor (version 1.1) because it's smaller. Note: You must use Geronimo 1.2 or later to work with Apache Trinidad.
- MyFaces, Apache's JSF implementation. Download the core version (without Tomcat) from Apache. We used version 1.1.3 with this tutorial.
- Eclipse, the extensible open source IDE that supports a wide range of languages and platforms.
- Apache Trinidad's additional components and input validators for use with any JSF implementation. Based on Oracle's ADF Faces, Trinidad is undergoing Apache incubator development, so you'll have to grab the current development snapshots: Go to the main snapshot page, and select trinidad-api and trinidad-impl until you find trinidad-api-incubator-m1-SNAPSHOT.jar and trinidad-impl-incubator-m1-SNAPSHOT.jar.
- Eclipse Web Tools Platform (WTP), which adds support for XML and JavaScript editing, as well as preliminary JSF support, to Eclipse. Use Eclipse's Update Manager to install the Web Tools Platform from the updater site.
- Java 1.4 or newer installed on your system. Eclipse binaries come with their own Java run time, but Geronimo and MyFaces don't (that would seriously bloat up the download archives). I'll be using Java 1.5 on Mac OS X 10.4, but it shouldn't make much of a difference.





