Hi,
I searched list for a while and can't find solution to this, so will just
post it here:
I have an ArrayList of a class and I need to access it from the loop, here
is the code in java:
public class Member {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Member() {
this.name = "member";
}
}
private ArrayList newMembers = new ArrayList();
public ArrayList getNewMembers()
{
return newMembers;
}
public Member getCurrentMember(int index)
{
return (Member)newMembers.get(index);
}
here is the template, it seems not right:
<t:loop source="NewMembers" value = "CurrentMember" index="i" >
// how to display the name of each member here ?
</t:loop>
--
View this message in context:
http://www.nabble.com/T5%3A-Loop-and-ArrayList-tf4358642.html#a12421788
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]