© Michael Müller 2018
Michael MüllerPractical JSF in Java EE 8 https://doi.org/10.1007/978-1-4842-3030-5_13

13. JSF Templating

Michael Müller1 
(1)
Brühl, Nordrhein-Westfalen, Germany
 

Usually an application provides a consistent look and feel. That way, the overall layout remains the same, with only content or other minor elements changing from page to page. JSF supports such an overall layout with its simple but powerful template feature.

Templating Books

A template is like a picture, with (mostly) rectangular holes cut into it. By placing other pictures behind these holes, you may change the picture while keeping the basic layout.

Figure 13-1 shows some different screens of the Books application .
Figure 13-1

Books in action

As you can see, because ...

Get Practical JSF in Java EE 8: Web Applications ​in Java for the Enterprise 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.