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 when the iteration list changes.
Attributes |
Name | Required | Request-time | Type | Description |
var | false | false | java.lang.String | Name of the variable representing each iteration item. Must be a string. |
items | false | false | java.lang.String | Value binding representing the object to iterate on. Available since 5.7. |
itemsId | false | false | java.lang.String | Identifier for the 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 | false | java.lang.String | Element to start with (0 = first item, 1 = second item, ...). Available since 5.7. |
end | false | false | java.lang.String | Element to end with (0 = first item, 1 = second item, ...). Available since 5.7. |
step | false | false | java.lang.String | Iteration will only process every step items of the collection, starting with the first one. Available since 5.7. |
index | false | false | java.lang.String | Name of the variable representing the iteration index. Must be a string. |
varStatus | false | false | 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 | false | java.lang.String | Value binding representing the object to iterate on. Deprecated since 5.7, use "items" attribute instead. |