forEachStatus"
From Documentation
m |
|||
Line 1: | Line 1: | ||
− | {{ | + | {{ZUMLReferencePageHeader}} |
== forEachStatus – org.zkoss.zk.ui.util.ForEachStatus == | == forEachStatus – org.zkoss.zk.ui.util.ForEachStatus == | ||
Line 27: | Line 27: | ||
|} | |} | ||
− | {{ | + | {{ZUMLReferencePageFooter}} |
Revision as of 05:02, 5 November 2010
forEachStatus – org.zkoss.zk.ui.util.ForEachStatus
The status of an iteration. ZK exposes the information relative to the iteration taking place when evaluating the iterative element.
<zk>
<zscript>
grades = new String[] {"Best", "Better", "Good"};
</zscript>
<listbox width="100px">
<listitem label="${forEachStatus.index}: ${each}" forEach="${grades}"/>
</listbox>
</zk>
Note: forEachStatus.index is absolute with respect to the underlying collection, array or other type. For example, if forEachBegin is 5, then the first value of forEachStatus.index with be 5.
Version History
Version | Date | Content |
---|---|---|