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)