Overview | Library | Tag | Help
| FRAMES NO FRAMES

## ui
Tag decorate

The `decorate` tag is identical to the `composition` tag, except that `ui:decorate`, unlike `ui:composition`, does not disregard all content outside of the tag. The `decorate` is useful when you want to decorate some content in a page, for example, you might want to decorate a list of items, like this:

1. <ui:decorate template="/layout.xhtml">
2. <ui:define name="listHeading">
3. <ui:include src="shared/listHeading.xhtml"/>
4. </ui:define>
6. <c:forEach items="#{items}" var="item">
7. ...
8. </c:forEach>
9. ...
10. </ui:decorate>

Because JSF does not disregard everything outside of the `ui:decorate` tag, `ui:decorate` can be used to decorate pieces of a page.

Tag Information
Tag Class | None
TagExtraInfo Class | None
Body Content | JSP
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
template | false | false | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | A URI that points to a template, also known as a layout, that inserts pieces of the page defined in the decorator.

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

Output Generated by Tag Library Documentation Generator.