| |||||||
FRAMES NO FRAMES |
Repeat the nested body content of this tag over a specified collection.
Repeats the nested body content of this tag once for every element of the specified collection, which must be a Collection
. The collection to be iterated over must be specified in one of the following ways:
collection
attribute.SourceBean collection
specified by the name
attribute.If the collection you are iterating over can contain null
values, the loop will still be performed but no page scope attribute (named by the id
attribute) will be created for that loop iteration. You can use the <logic:present>
and <logic:notPresent>
tags to test for this case.
Tag Information | |
Tag Class | it.eng.spago.taglib.logic.IterateTag |
TagExtraInfo Class | it.eng.spago.taglib.logic.IterateTei |
Body Content | JSP |
Display Name | None |
Attributes | ||||
Name | Required | Request-time | Type | Description |
collection | false | true | java.lang.Object | A runtime expression that evaluates to a collection (conforming to the requirements listed above) to be iterated over. |
id | true | false | java.lang.String | The name of a page scope JSP bean that will contain the current element of the collection on each iteration, if it is not |
indexId | false | false | java.lang.String | The name of a page scope JSP bean that will contain the current index of the collection on each iteration. |
length | false | true | java.lang.String | The maximum number of entries (from the underlying collection) to be iterated through on this page. This can be either an integer that directly expresses the desired value, or the name of a JSP bean (in any scope) of type |
listAttribute | false | true | java.lang.String | See paramName |
name | false | true | java.lang.String | The name of the |
offset | false | true | java.lang.String | The zero-relative index of the starting point at which entries from the underlying collection will be iterated through. This can be either an integer that directly expresses the desired value, or the name of a JSP bean (in any scope) of type |
paramName | false | true | java.lang.String | The attribute paramName is used in conjunction with the attribute paramValue and the attribute listAttribute to filter a SourceBeanAttribute. In this way is possible to navigate a SourceBean to a path that indicate a list of SourceBeanAttribute to filter; the filter is rappresented with the pair (paramName , paramValue ). If the obtained attribute contain a list identified by listAttribute , this list is returned. |
paramValue | false | true | java.lang.String | See paramName |
scope | false | true | java.lang.String | The bean scope within which to search for the bean named by the |
Variables | No Variables Defined. |
| |||||||
FRAMES NO FRAMES |