Documentation
FaceletsTools

Search 

Contents

  1. Introduction
  2. Getting Started
  3. Facelets Concepts
  4. Document Types
  5. Design View Support
  6. Code View Support
  7. Keyboard Shortcuts
  8. Tag Object Toolbars
  9. Property Inspectors
Selected 10. Facelets Tag Reference

10. Facelets UI Tag Reference

Contents > Facelets UI Tag Reference > ui:include

ui:include

The UI Include tag is a server-side include tag for Facelets. It simply includes the document pointed to by the "src" attribute as part of the current JSF page. The included document should use a component or composition tag to trim unnecessary markup, or it may simply contain a fragment of XHTML or XML to be included.

Example:

<p><strong>include.jsf</strong></p>
<ui:include src="header.jsf"/>
Body text here.

HTML Output

<p><strong>include.jsf</strong></p>
<h2>Our Company</h2>
Body goes here.

Tag Attributes

src String
Required
The src attribute accepts a literal value or an EL expression that points to the Facelet to be included in your document.