I'm not sure why you would want to pass an index around... surely an id is better?
eg <t:loop source="videoDatas" value="videoItem"> <t:pagelink page="someOtherPage" t:context="videoItem.videoId" /> </t:loop> If you NEED to pass the index (I strongly advise against this, what happens if you decide to let the user sort the list) then you could do the following: <t:loop source="videoDatas" value="videoItem" index="currentIndex"> <t:pagelink page="someOtherPage" t:context="currentIndex" /> </t:loop> As suggested in this thread, I think that this example is what you want http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/linkingloop1 On Wednesday, 14 March 2012, karthi <rathinasamy....@snovabits.net> wrote: > I've seen your answer, Thank you very much for continuously helping me... Was > looking for some tapestry code or a trick... > > Atlast one of my friends suggest me to add a property called position in > pojo class & set the value of the index to that when setting values for > other items & in tml page inside the loop in the action link asked me to add > t:context="musicItem.pos" and get this value as a paramater in java class. > This works great!! > > > > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/Is-there-any-way-to-get-the-selected-item-s-index-in-loop-after-layout-has-been-done-tp5557270p5563662.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >