I’d like to pass an array as a GET parameter, say:
http://localhost/index.jsf?myArray=1stValue&myArray=2ndValue&myArray=3rdValue
Then I want to loop over that array:
<c:forEach var="p" items="#{param['myArray']}">
<h:outputText value="#{p}" />
</c:forEach>
I know this code won’t work.
But how can I do something like this?
You need
#{paramValues}instead. It refers toHttpServletRequest#getParameterValues().or