ui

Tag repeat

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

If the value attribute is not specified: iteration begins with the specified number (inclusive) as item. If the value attribute is specified: a FacesException must be thrown. If the corresponding end attribute is not specified: use 0 as default. The corresponding end attribute may be less than the beginbegin attribute: iteration will take place in a reversed manner.

endfalsejakarta.el.ValueExpression
(must evaluate to int)

If the value attribute is not specified: iteration ends with the specified number (inclusive) as item. If the value attribute is specified: a FacesException must be thrown. If the corresponding begin attribute is not specified: use 0 as default. The corresponding begin attribute may be greater than the end attribute: iteration will take place in a reversed manner.

offsetfalsejakarta.el.ValueExpression
(must evaluate to int)

If the value attribute is specified: iteration begins with the specified number as index. If the value attribute is not specified: a FacesException must be thrown. If the offset attribute is not specified: use 0 as default. If the offset attribute is less than 0 or is greater than the size of the actual collection behind the value attribute: a FacesException must be thrown.

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.

sizefalsejakarta.el.ValueExpression
(must evaluate to int)

If the value attribute is specified: iteration ends when the specified number of times has been iterated (inclusive). If the value attribute is not specified: a FacesException must be thrown. If the size attribute is not specified: use the size of the actual collection behind the value attribute as default. If the sum of the size attribute and the offset attribute is less than 0 or is greater than the size of the actual collection behind the value attribute: a FacesException must be thrown. If the step attribute is specified: each skipped item must also be counted for the size attribute.

stepfalsejakarta.el.ValueExpression
(must evaluate to int)

Iteration will only process every step items of the collection, starting with the first one. If the step attribute is less than 1: a FacesException must be thrown.

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