ui

Tag repeat

Attributes 
NameRequiredTypeDescription
beginfalsejakarta.el.ValueExpression
(must evaluate to int)

If value specified: Iteration begins at the item located at the specified index. First item of the collection has index 0. If value not specified: Iteration begins with index set at the specified value.

endfalsejakarta.el.ValueExpression
(must evaluate to int)

If value specified: Iteration ends at the item located at the specified index (inclusive). If value not specified: Iteration ends when index reaches the specified value (inclusive).

offsetfalsejakarta.el.ValueExpression
(must evaluate to int)

Read-write property setting the offset from the beginning of the collection from which to start the iteration. If not set, this offset is not considered and iteration will start at the beginning of the collection.

sizefalsejakarta.el.ValueExpression
(must evaluate to int)

Read-write property setting the size of the collection to iterate. If this value is less than the actual size of the collection, a FacesException must be thrown.

stepfalsejakarta.el.ValueExpression
(must evaluate to int)

Iteration will only process every step items of the collection, starting with the first one.

valuetruejakarta.el.ValueExpression
(must evaluate to java.lang.Object)

The name of a collection of items that this tag iterates over. The collection may be a List, array, java.sql.ResultSet, java.lang.Iterable, java.util.Map or an individual java Object. If the collection is null, this tag does nothing.

vartruejakarta.el.ValueExpression
(must evaluate to java.lang.String)

Name of the exported scoped variable for the current item of the iteration. This scoped variable has nested visibility.

varStatusfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)

Name of the exported request scoped variable for the status of the iteration. The object the name points to is a POJO with the following read-only JavaBeans properties. This scoped variable has nested visibility.

begin of type Integer

end of type Integer

index of type int

step of type Integer

even of type boolean

odd of type boolean

first of type boolean

last of type boolean

renderedfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)

Controls whether the repeat component is rendered. Valid values for this attribute are either the strings "true" or "false" or an EL expression that evaluates to either "true" or "false".

If this attribute's value is "false" or the value is an EL expression that evaluates to "false", the repeat is not rendered in the page.

rowStatePreservedfalsejakarta.el.ValueExpression
(must evaluate to boolean)

Boolean flag directing how the per-row component state of EditableValueHolder children should be handled across requests on the same view. If set to true, then state for EditableValueHolder components in each row will not be discarded before a new row is rendered. If not specified, the default value is false.

This attribute should be set only when the current repeat component contains UIForm children which in turn contains EditableValueHolder children. This will only work reliably when the data model of the current repeat component does not change across requests on the same view by e.g. sorting, adding or removing rows. The alternative is to use c:forEach instead.