UI-Component Sets
Project Documentation


Facelet Tag name: <ui:fragment>
Facelet Tag class: org.apache.myfaces.view.facelets.tag.ui.ComponentRefHandler
Just like composition has decorate as a non-trimming version of the same behavior, component has fragment. This allows you to logically insert a UIComponent into the tree and possibly bind this fragment to a JavaBean property or Map for management. The fragment tag was also added to Facelets to get around some of the optimizations used in handling text within your document. If you are using components such as <f:panelGrid/>, which renders its children, you may want more control over the building process that Facelets does and using a fragment tag will help guarantee parent/child relationships for you.

The component class used for this tag is org.apache.myfaces.view.facelets.tag.ui.ComponentRef and the real java class that contains this description is not used on runtime.


Name Type Required Description
binding org.apache.myfaces.view.facelets.tag.ui.ComponentRefHandler false Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind " + "to this component instance. This value must be an EL expression.
id String false Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view.