Here is a short example:

TML (not tested)
<t:loop source="keys" value="key">

key: ${key}  -   value: ${value}

</t:loop>

JAVA (not tested)

private Map<String, String> map;

public Collection<String> getKeys(){

return map.keyset();

}

@Property
private String key;

public String getValue(){

return map.get(key);

}

Cheers,
Dragan Sahpaski



On Fri, Jul 15, 2011 at 8:27 AM, dick_hu <dickan...@gmail.com> 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 lot.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Loop-Map-tp4589569p4589569.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to