problem with iterate over java.util.Map using "JSF" OR JSTL TAGS

Posted by New-To-Java on Stack Overflow See other posts from Stack Overflow or by New-To-Java
Published on 2009-09-22T15:58:10Z Indexed on 2010/03/31 14:33 UTC
Read the original article Hit count: 368

Filed under:
|
|
|
|

I'm using Richfaces jsf and I want to iterate over an Map<Object,Object>. I see many examples on sun forums and other sites but in my case it doesn't work ! here is my xhtml code :

<c:forEach items="#{order.customOptions}" var="option">
      <h:outputText value="this text does not print"/>
      <h:outputText value="#{option.value.name}" />
      <h:outputText value="#{option.value.key}" />
</c:forEach>

and the "order" object is of type "Order". "customOptios" is of type Map<CustomOption,CustomOptionValue> and when I create an javascript alert on to print '#{order.customeOptions}' it's content is true. but it's not even enter in c:forEach loop. please heeeeelp me :(

© Stack Overflow or respective owner

Related posts about java

Related posts about jsf