I am using a converter throughout my system which uses the following annotation:
@FacesConverter(forClass = Group.class)
this works fine except for SelectManyMenu where the conversion doesn't seem to take place. My SelectManyMenu is defined as follows
<p:selectManyMenu value="#{maintainMB.filteredLogicalGroups}" var="g" showCheckbox="true">
<f:selectItems value="#{maintainMB.logicalGroupFilterList}" var="group" itemLabel="#{group.name}" itemValue="#{group}" />
<p:column>
<p:graphicImage value="image.png.xhtml" width="32"/>
</p:column>
<p:column>
#{g.name}
</p:column>
</p:selectManyMenu>
The SelectMenyMenu renders ok but when i select items they are returned as a string not an object.
If i change my Converter annotation to
@FacesConverter(value = "groupConverter")
and change my SelectManyMenu tag to include
converter="groupConverter"
then it works as expected.
Is this a bug in JSF/Primefaces?
I am using: Primefaces 3.5 Tomcat 7
Thanks