In a backing bean I have defined a Map<Integer,String>
property. When trying to access the map from EL inside an xhtml-file, I get nothing back.
<h:outputLabel value="#{bean.myMap[0]}">
does not return the value for key 0. With a String key it works.
It works with a List<String>
, but I want the Map to have some kind of sparse array (not all indexes have values)
omnifaces
: showcase.omnifaces.org – Excellency${}
and#{}
while JSTL is a tag library that helps working with EL. More info in their respective stackoverflow wiki pages: EL and JSTL. Also, refer to JSTL in JSF2 Facelets… makes sense? – Nephograph