Facelet tag handler that performs an iteration.
This handler is very close to the facelets c:forEach tag handler. It holds additional configuration to handle ajax re-rendering of lists, avoiding potential JSF duplicate id issues, as well as cache issue, when the iteration list changes.
Example:<nxu:repeat items="#{layoutNames}" var="layout"> <nxl:layout name="#{layout}" value="#{document}" /> </nxu:repeat>
Name | Required | Type | Description |
---|---|---|---|
var | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Name of the variable representing each iteration item. Must be a string. |
items | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| Value binding representing the object to iterate on. Available since 5.7. |
itemsId | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Identifier for the iteration loop: if this id changes on ajax re-render, JSF subcomponents will be re-created. When this attribute is not filled, the string representation of the iteration list is used instead. Available since 5.7. |
begin | false | javax.el.ValueExpression
(must evaluate to java.lang.Integer )
| Element to start with (0 = first item, 1 = second item, ...). Available since 5.7. |
end | false | javax.el.ValueExpression
(must evaluate to java.lang.Integer )
| Element to end with (0 = first item, 1 = second item, ...). Available since 5.7. |
step | false | javax.el.ValueExpression
(must evaluate to java.lang.Integer )
| Iteration will only process every step items of the collection, starting with the first one. Available since 5.7. |
index | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Name of the variable representing the iteration index. |
varStatus | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Name of the exported scoped variable for the status of the iteration. Object exported is of type javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested visibility. Available since 5.7. |
value | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| Value binding representing the object to iterate on. Deprecated since 5.7, use "items" attribute instead. |
Output generated by Vdldoc View Declaration Language Documentation Generator.