Re: Iterating a map in template

2012-08-02 Thread Stephan Windmüller
On 03.08.2012 02:40, Angelo C. wrote: > I'm trying to iterate a map in template with following code, but, it turns > out that the entire map is only one row, I'm sure I have made something > wrong, can anybody point it out? Thanks, Try this (untested): - ${entry.key}: ${entry.value}

Re: Iterating a map in template

2012-08-02 Thread mailingl...@j-b-s.de
p getCounts() { > return cnts; > } > > private static TreeMap cnts = new TreeMap String>(); > static { > cnts.put(1, "ITEM1"); > cnts.put(2, "ITEM2"); > } > > > > > -- > View this message in context: > http:

Re: Iterating a map in template

2012-08-02 Thread Ray Nicholus
ts.put(2, "ITEM2"); > } > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Iterating-a-map-in-template-tp5715010.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > -

Iterating a map in template

2012-08-02 Thread Angelo C.
public Map getCounts() { return cnts; } private static TreeMap cnts = new TreeMap(); static { cnts.put(1, "ITEM1"); cnts.put(2, "ITEM2"); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/Iterating-a-map-in-template-tp5715010.html Sent from th