Is it possible to iterate over ENUM in ui:repeat
or c:forEach
?
I'm using o:importConstants
of Omnifaces 2.5.
Example code:
<o:importConstants type="my.package.MyEnum"></o:importConstants>
<c:forEach var="icon" items="#{MyEnum}">
#{icon.toString()}
</c:forEach>
but it comes:
com.sun.faces.facelets.tag.jstl.core.MappedValueExpression$Entry@565a5787
com.sun.faces.facelets.tag.jstl.core.MappedValueExpression$Entry@6c01f0ce
com.sun.faces.facelets.tag.jstl.core.MappedValueExpression$Entry@2cd6ac37
com.sun.faces.facelets.tag.jstl.core.MappedValueExpression$Entry@7b6d8d37
com.sun.faces.facelets.tag.jstl.core.MappedValueExpression$Entry@7f8f1bb2