Facelets is an integrated feature of JSF 2.0. In this chapter we discussed templating with Facelets. WebLogic Server includes a shared library for JSF 2.0, which we configured first. We added the 2.0 version of the JavaServer Faces project facet. We created a web project for Facelets, and created a managed bean to create a JSF data table. For templating we added a Facelets template in which we configured the default sections of a Facelets page such as header, content, and footer. We added Facelets pages for a SQL query input and a JSF data table output. We added implicit navigation to the JSF pages. We ran the Facelets application to demonstrate templating by including the same header and footer images in the input and output pages.
Having introduced creating a JSF data table in Chapter 4, Creating a JSF Data Table, and templating with Facelets in JSF 2.0 in this chapter, in the next chapter we shall discuss the Apache MyFaces Trinidad, which is a JSF framework.