O'Reilly logo

PrimeFaces Theme Development by Sudheer Jonna, Andy Bailey

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

Because templates are not pages in themselves, we don't want them to be accessible as a page. In order to do this, we need to create it in the WEB-INF folder.

Note

The JEE7 standard stipulates that the WEB-INF folder and all of its contents must be inaccessible on a browser for users.

We need to keep things organized and place things such as template files separate from configuration files such as web.xml. So, we will create a folder named resources in the WEB-INF folder and then create another folder in the resources folder named templates. Perform the following steps to create a Facelets Template:

  1. In the Projects navigator, open the WEB-INF folder and then select it. You should see something similar to the following ...

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