JBoss.orgCommunity Documentation

Chapter 2. JavaServer Faces Support

2.1. Facelets Support
2.1.1. Creating a JSF project with Facelets
2.1.2. Facelets components
2.1.3. Code assist for Facelets
2.1.4. Open On feature

JSF Tools does not lock you into any one JavaServer Faces implementation. You can always specify the desired JavaServer Faces implementation while creating a new JSF project (see Section 3.1, “Creating a New JSF Project”), adding JSF capability to any existing Eclipse project (see Section 3.3, “Adding JSF Capability to Any Existing Project”), or importing existing JSF projects (see Section 3.2, “Importing Existing JSF Projects with Any Structure”).

At this point the special wizard will prompt you to specify an appropriate JSF environment. It may be JSF 1.1.02 RI, JSF 1.2, JSF 2.0 or JSF 2.1. The wizard also lets you select JSF implementation with a component orientation such as JSF 1.2 with Facelets or MyFaces 1.1.4.

Choosing JSF Environment

Figure 2.1. Choosing JSF Environment


After specifying an appropriate JSF environment, all the required libraries associated with the selected version will be added to your project.

In this section we will focus all the concepts that relate to working with Facelets.

Facelets extend JavaServer Faces by providing a lightweight framework that radically simplifies the design of JSF presentation pages. Facelets can be used in a variety of ways that we will consider further in this section.