O'Reilly logo

JSF 1.2 Components by Ian Hlavats

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

An advanced Facelets composition template

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required