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