I am having trouble interleaving a HashMap to print its values on screen. Can someone double check my code to see what I am doing wrong. I can’t find anything bad, but there must be something.
In the servlet, I add the following to the request:
Map<String, String> facetValues = new HashMap<String, String>();
req.setAttribute(facetField.getName(), facetValues);
In one case, "facetField.getName ()" evaluates to "discipline." So on my page I have the following:
<ui:repeat value="${requestScope.discipline}" var="item">
<li>Item: <c:out value="${item}"/>, Key: <c:out value="${item.key}"/>, Value: <c:out value="${item.item}"/></li>
</ui:repeat>
The cycle is executed once, but all outputs are empty?!? I would at least expect something in the element if it went through the loop at a time. Checking the debug popup for Facelets, there is discipline in the loop too. Printing on the screen leads to what looks like a map for me (I reduced the output):
{300=0, 1600=0, 200=0, ... , 2200=0}
c: forEach, . - , ?
,