the loop component provides an "index" parameter that contains
the current iteration...
<t:loop source="1..16" index="row_count" >
<tr>
<t:loop source="1..4" index="column_count">
<td>${value}</td>
</t:loop>
</tr>
</t:loop>
public Object getValue() {
return _information[row_count][column_count];
}
g,
kris
"Sabine K." <[EMAIL PROTECTED]>
18.04.2007 10:40
Bitte antworten an
"Tapestry users" <[email protected]>
An
[email protected]
Kopie
Thema
T5: How to acces to an array from loop?
Hello,
i have this:
<table>
<t:form t:id="form">
<t:loop source="1.16" value="row">
<tr>
<t:loop source="1..4" value="column">
<td>${column} ${row}</td>
</t:loop>
</tr>
</t:loop>
</t:form>
</table>
In the class there is an array: _information[4][16]. How can i get the
values out of the array in the right rows and columns?
Best regards, Sabine
--
View this message in context:
http://www.nabble.com/T5%3A-How-to-acces-to-an-array-from-loop--tf3599642.html#a10054552
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]