O'Reilly logo

Advanced Java® EE Development with WildFly® by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Facelets template

A Facelets template is a reusable component, which includes one or more JSF pages as different, sections of the template that may be used in multiple Facelets composition pages thus precluding the inclusion of each of the JSF pages that comprise the common sections of Facelets composition pages separately. We will use a Facelets template to include a header JSF page and a footer JSF page. The Facelets templates are to be created in the WEB-INF/templates directory for which you need to add a templates directory. Right-click on the WEB-INF folder in Project Explorer and select New | Folder, as shown in the following screenshot:

In the New Folder wizard, select the webapp | WEB-INF folder and specify Folder name as templates ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required