Chapter 11. JSF 2.2 Resource Library Contracts – Themes

Starting with version 2.0, JSF developers exploit Facelets as the default View Declaration Language (VDL). Facelets provide many advantages, but we are especially interested in using Facelet templates, which represent a mix of XHTML and other resources such as CSS, JS, and images. A Facelet template acts as a base (or a model) for the application pages. Practically, it represents a piece of reusable code that serves as a consistent and standard look and feel for the application pages. In the final chapter of this book, we will get more into the details of Facelets and templating, while in this chapter we will focus on the new JSF 2.2 feature known as Resource Library Contracts.

This new feature ...

Get Mastering JavaServer Faces 2.2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.