Documentation
Facelets Tools

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

ui:component

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

Example

This text will be ignored.
<ui:component binding="#{myBean.component}">
  <div>Hello World!</div>
</ui:component>
This text will be ignored.

HTML Output

<div>Hello World!</div>

Tag Attributes

binding Expression
 
The value-binding expression linking this component tag to a backing bean property.
id Text
 
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.