You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Voors Paul <pa...@atp.nl> on 2005/11/18 13:13:00 UTC

Re(2): Question about for loop

Thanks,

I am using tapestry 4, the only thing i changed was:
In the page file:
<property-specification name="i" type="int" />

For tapestry 4 it is:
<property name="i" />

Paul

Todd O'Bryan (11/18/2005 12:03):
>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: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>

Met vriendelijke groet,

Paul Voors

function: Java Web Developer
department: Webdevelopment
Company:
ATP - The Advanced Travel Partner
Beechavenue 101 | 1119 RB Schiphol-Rijk | The Netherlands
P.O. Box 75672 | 1118 ZS  Schiphol-Rijk | The Netherlands
T +31 20 2011363 | F +31 20 2011362
e-mail: paul@atp.nl
www: www.atp.nl


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org