About Facelets in CAF
Composite Application Framework (CAF) provides support for the JSF protocol and the implementation of views with Facelets and XHTML functionality.
You can create a new CAF portlet and web application projects with support for JSF Facelets. Creation of a project from a template is subject to the UI Development preference
Prefer JSF 2.x xhtml Facelet Templates for New Pages. For more information, see
Disabling Facelets Functionality
for New Projects and Views.
Facelets provide a number of advantages to facilitate component reuse and ease of development, including:
Templating. A Facelets file can be configured to reference an existing file that can be used as a template. The Facelets file can provide content for placeholders defined in the template file. The Facelets file, with its template file incorporated, can also be used as a template for other Facelets files, enabling you to create a hierarchy of templates.
Ability to use XHTML to define pages.You can use the extended capabilities of XHTML to define your pages. In addition, using *.xhtml as a URL pattern provides convenience when calling pages.
Support for Facelets tag libraries. All CAF controls are available as tag libraries for use in Facelets applications.