Use this tag as an alternative to
h:dataTable
or c:forEach
, especially
when you are using the jsfc
feature of
Facelets. You can specify this component as the value of the
jsfc
attribute, like this:
<div... jsfc="ui:repeat" value="#{contacts}"
var="contact">...
Name | Required | Type | Description |
---|---|---|---|
begin | false | jakarta.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. |
end | false | jakarta.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). |
offset | false | jakarta.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. |
size | false | jakarta.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
|
step | false | jakarta.el.ValueExpression
(must evaluate to int )
|
Iteration will only process every step items of the collection, starting with the first one. |
value | true | jakarta.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 |
var | true | jakarta.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. |
varStatus | false | jakarta.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.
|
rendered | false | jakarta.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. |