CloseIterating through a HashMap in a repeat control
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:repeat id="repeat1" rows="30" var="entry">
<xp:this.value><![CDATA[#{javascript:var map = new java.util.HashMap();
map.put("foo", "bar");
map.put("blah", "blubb");
return map.entrySet();}]]></xp:this.value>
<xp:label value="#{javascript:entry.getKey()}" id="label2"></xp:label> -
<xp:label value="#{javascript:entry.getValue()}" id="label1"></xp:label>
<xp:br></xp:br>
</xp:repeat>
</xp:view>
Tagged with java xpages repeat control hashmap entryset