Alloy Showcase

ui:repeat

ui:repeat iterates through a List, array, ResultSet or a single Object, encoding the children nested elements for each iteration. For these iterations you can use var attribute as the name of an scoped object that will be available for use.

General Usage

Use size if you want to delimit the number of iterations (should be less or equal from the total value elements), or step to only process those elements after the latest processed one. There is an interesting request variable that can be set in varStatus with some internal data about each iteration.
  • Index: 0, China
  • Index: 1, Switzerland
  • Index: 2, United States
  • Index: 3, United Kingdom
  • Index: 4, Vietnam

Source Code

Liferay Faces Alloy 3.0.1 + Liferay Faces Bridge Implementation 4.1.0 + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.14