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:fragment

ui:fragment

The UI Fragment tag inserts a new UIComponent instance into the JSF component tree. Any components or content fragments outside this tag will be included by the Facelets view handler. Any components or content fragments within this tag will be added to the component tree as children of this component instance. See also ui:component.

Example:

<p><strong>fragment.jsf</strong></p>
This text will be included.
<ui:fragment binding="#{myBackingBean.component}">
</ui:fragment>
  <div id="message">Hello World!/div>
This text will be included.

HTML Output

This text will be included.
  <div id="message">Hello World!/div>
This text will be included.

Tag Attributes

binding String
 
id String
Required
The unique identifier value for this component. The value must be unique within the closest naming container. If you do not provide a component ID, Facelets will assign one automatically.