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: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] www: www.atp.nl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
