Below is the code from my front end.
<f:selectItems value="#{bean.choices1.entrySet()}" var="entry"
itemValue="#{entry.key}" itemLabel="#{entry.value}" />
Where in my back end I have values set for choice1
which is of type Map like.
Map<String, Long> choices1= new HashMap<String, Long>();
But I am getting an error
Error Parsing: #{bean.Choices1.entrySet()}
I saw lot of examples but most of them are doing what I am using. Please correct if I am doing anything wrong.
I am using,
- jsf-api-2.1.6.jar
- jsf-impl-2.1.6.jar