JBoss.orgCommunity Documentation

Chapter 2. JavaServer Faces Support

2.1. Facelets Support
2.1.1. Facelets templates
2.1.2. Facelets components
2.1.3. Code assist for Facelets
2.1.4. Open On feature

We don't lock you into any one JavaServer Faces implementation. You can always select the one which is necessary for you while creating a new JSF project, adding JSF capability to any existing Eclipse project or importing existing JSF projects as well.

At this point the spacial wizard will prompt you to specify a proper JSF environment. It may be JSF 1.1.02 RI or JSF 1.2 which is integrates a number of new features and changes. 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 a proper JSF environment all the required libraries for the selected version will be added to your project.

In this section we will focus more on all concepts that are integrated for working with Facelets.

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

The JBoss Tools Palette comes with the Facelets components ready to use. A useful tip appears when you hover the mouse cursor over the tag, the tip includes a detailed description of the tag component, the syntax and available attributes.