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
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
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.
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
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)
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
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) {