Iterator Examples    Introduction<forCategories><forColumns>

<forColumns> Examples

Baseline   

The application data used for the examples of this page is stored in application attribute athletes and athleteNames. athletes is a List of AthleteInfo objects (name, country, sport) sorted by country, sport, and name, while athleteNames is also a List of AthleteInfo objects but sorted on the athlete names.

This example simply displays the two lists, using tag <forEach>. This can be used as the baseline to compare with the more sophisticated displays of the examples below.

Display with two columns  

This example displays the items in the athletes list, two columns wide.

Display with four columns  

This example displays the items in the athleteNames list, four columns wide.