Thank you,they are helpful to me.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Loop-Map-tp4589569p4589722.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail:
Here is a short example:
TML (not tested)
key: ${key} - value: ${value}
JAVA (not tested)
private Map map;
public Collection getKeys(){
return map.keyset();
}
@Property
private String key;
public String getValue(){
return map.get(key);
}
Cheers,
Dragan Sahpaski
On Fri, Jul 15,
How about iterating over the entry set?
.java
@Property
private Map.Entry entry;
${entry.key}: ${entry.value}
Robert
On Jul 15, 2011, at 7/151:27 AM , dick_hu wrote:
> How can I Loop the Map?
> in the loop I can get the key and value.
> Can anyone share a part of code?
> Thanks a