The following example demonstrates an advanced Facelets composition template and uses the majority of Facelets tags in a single composite view. In this example, the template client document specifies a number of named content elements using the<ui:define>
tag and reuses multiple UI elements.
The<ui:define>
tag named title
specifies the document title. The links
element uses a<ui:include>
tag to include the navigation menu that will be inserted into the links
section of the template. The header
element simply defines the page header. The content
element defines the paragraph text to be rendered by the template. Finally, the data
element defines the data to be displayed by re-using the external links.jsf
template that renders a parameterized list of customers.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <html xmlns=http://www.w3.org/1999/xhtml...