YES! There's a parameter called index which you can use for that
purpose.
(This is all Tap3 stuff, so 4 will be different...)
In your .page file,
<property-specification name="i" type="int" />
In your .html
<span jwcid="@Foreach" source="ognl:whatever" value="ognl:whatever"
index="ognl:i">
<span jwcid="@Insert" value="ognl:i">This will print 0 up to the
final index</span>
</span>
It should work identically for the @For component.
HTH,
Todd
On Nov 18, 2005, at 5:31 AM, Voors Paul wrote:
Hello folks,
If you have a for loop running through a list of, let say, 10
items. Is it possible to show/use the number in the list of each
item withing the for loop?
Greetings,
Paul Voors
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]