Documentation

Search 

Contents

  1. Introduction
  2. Getting Started
  3. Trinidad Concepts
  4. Code View Support
  5. Design View Support
  6. Tag Object Toolbars
  7. Server Behaviors
  8. Property Inspectors
Selected 9. Trinidad Tag Reference

10. Trinidad Core Tag Reference

Contents > Trinidad Core Tag Reference > tr:forEach

tr:forEach

The tr:forEach tag is used to iterate each item in a list or array and executes immediately. This tag will not work if the size of the list changes with each request.

Example

<tr:forEach></tr:forEach>

HTML Output

(No output.)

Tag Attributes

begin Text
 
The begin attribute sets the index to begin the iteration.
end Text
 
The end attribute sets the index to end the iteration.
items Text
 
The items attribute sets the items to iterate.
step Text
 
The step attribute sets the number to increase after each iteration.
var Text
 
The var attribute sets the name of a request-scope attribute exposing the data for each iteration over the rows in the underlying data model for this table.
varStatus Text
 
The varStatus attribute sets the EL variable used for contextual information about the state of the component and loop counter information for components that iterate. Common properties are “model” (returns CollectionModel) and “index” (returns zero based row index).