view:iterate

Iterate over each item in a view. The body of this tag will be executed once for each item in the view.

Syntax
<view:iterate
   depth="..."?
   id="..."
   length="..."?
   name="..."?
   offset="..."?
   property="..."?
   type="..."?
   view="..."?>
   <view:relationships.../>
</view:iterate>
Attributes
id, mandatory, no runtime expressions

The current item in the view will be exported using a variable with this name. In addition, the page-scoped attribute of this name will also contain the current item.

depth

The maximum depth to be iterated through in this tag. Elements that are deeper will not be iterated over. If it is not present there will not be any limit on the depth.

length

The maximum number of entries (from the view) to be iterated through in this tag. If not present, there will be no limit on the number of iterations performed.

offset

The zero-relative index of the starting point at which entries from the view will be iterated through. If not present, zero is assumed (meaning that the view will be iterated from the beginning).

type, no runtime expressions

The variable created will be of the type specified by this attribute. If this variable is not specified, the variable will be exported as a generic object.

view

The view to iterate over. It must be specified by a scriptlet that returns a View object.

name

Name of bean that contains the view.

property

Name of the property to get the view from the bean specified by the name-attribute.