Creating a simple template – PageLayout

When these eleven tags combine their skills, we can create amazing templates. For example, let's suppose that we want to create the template from the following diagram and we name it PageLayout:

Creating a simple template – PageLayout

Note

Notice that with just a few clicks, NetBeans can generate the code behind several templates of Facelets, including the preceding abstractization. But, this time we will write it manually, in order to exemplify the Facelets tags. While NetBeans provides a compact code, based on a single XHTML page, we will write an expanded approach using six XHTML pages. In this way, you will have two ways of writing this kind of ...

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.