Data Iterator
The iterator component iterates over rows of model data allowing values from each row to be used in child components. For each row of data available a set of child components will be rendered, the iterator tag itself does not have any control over what is rendered, it just provides data to child components.
Properties and All Attributes views
The Properties view for a component shows the most common set of attributes you can set on a component, and, depending on the component, you might also see options for adding controls, actions, or other components. To open the Properties view, click
Window | Show View | Properties.
These common attributes for the Data Iterator component display on the hx:dataIterator and Styles tabs in the Properties view. See the Data Iterator attributes table for a list of attributes.
The All Attributes view shows a table of all the attributes you can set on a component, which includes those attributes you can access from the Properties view. To switch to the All Attributes view, click the
All Attributes icon in the upper right corner of the Properties view.
Table 1. Data Iterator attributes Attribute name
Description
binding
An expression that binds the component's instance (usually a user interface component) to a bean property (usually in the backing file).
first
Index of the first row to be displayed.
id
Assigns a name to a component. Should be a unique name within a JSP.
rows
Specifies the number of rows displayed at runtime.
value
Specifies the initial text value for the component displayed at runtime. Contains information to be displayed, in the form of a specified value or a pointer to a dynamic value.
var
Specifies the reference variable name for the data available using the value attribute.