Iterator Examples    Introduction<forCategories><forColumns>

<forCategories> Examples

Baseline  

The application data used for the examples of this page is stored in application attribute athletes. athletes is a collection of AthleteInfo objects (name, country, sport) sorted by country, sport, and name.

This example simply displays the Athletes collection using tag <forEach>, so that you can use this as the baseline to compare with the more sophisticated examples below.

Display with one level of categories  

This example displays the items in the athletes collection, using a single level of categories. The athletes are listed by country.

Display with 2 nested levels of categories  

This example displays the items in the athletes collection, using 2 nested levels of categories. The athletes are listed by country, and then by sport they practice.

Display with 3 nested levels of categories  

This example displays the items in the athletes collection, using 3 levels of categories. The athletes are listed by country, by sport they practice, and by gender.