Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-14 Thread karthi
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

Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-14 Thread Lance Java
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

Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-13 Thread karthi
Anyone help me? Can't able to do that -- 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-tp5557270p5560679.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-13 Thread Thiago H. de Paula Figueiredo
On Tue, 13 Mar 2012 08:28:18 -0300, karthi rathinasamy@snovabits.net wrote: Anyone help me? Can't able to do that Have you seen my answer? Basically, if you want to read something after the HTML is rendered, you need to store this something in HTML or JavaScript in some way. I've

Is there any way to get the selected item's index in loop after layout has been done?

2012-03-12 Thread karthi
Hi, In the java page I have, @Property private int currentIndex; public ListVideoItem getVideoDatas() { videoItems = null; VideoItemCollection collection = new VideoItemCollection(Constants.VIDEOS); if(collection.videoItems.size() 0)

Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-12 Thread Chris Mylonas
Something like this http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/linkingloop1 If not that one, there are other examples: http://jumpstart.doublenegative.com.au/jumpstart/examples You'll find your answer there On 12/03/2012, at 9:53 PM, karthi wrote: Hi, In the java

Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-12 Thread karthi
No in that loop examples they are getting the loop source values and passed to other pages, I've used that using the currentIndex in that same java page, public String getAlternateColour() { String bgColor = null; if(currentIndex%2 == 0) {