Building pages
With the task flows defined, we are done with the controller layer in our model-view-controller architecture. The next layer we will work on is the view layer.
Using templates
Just like you created a task flow template before you built the first task flow, you should create templates for your pages and page fragments. Page and page fragment templates are always referenced (never copied), so any change you make to a page template will affect all pages based on the template. For now, we will build the templates in the RentalView
project—in Chapter 5, Building Enterprise Applications, we'll see how templates can be kept in their own library in an enterprise application.
Your application will have both a page template and a page fragment template as shown in the following diagram:
The page is based on the page template and contains task flows with page fragments. Each fragment is based on a separate page fragment template.
Facet definitions
In JSF terminology, a facet is a place where...