have the following code:
Code: Select all
<p:selectCheckboxMenu id="sysRole" value="#{bean.modelDS.roles}" label="#{labels['general.role']}" multiple="true" filter="false" panelStyle="width:250px">
<f:attribute name="collectionType" value="java.util.ArrayList" />
<f:selectItems value="#{bean.allRoles}" />
</p:selectCheckboxMenu>
But mysteriously <f:attribute name="collectionType" value="java.util.ArrayList" /> is ignored and this and other similar components like <p:selectManyCheckbox/> anyway return object of type String[] .
I have another project where attribute "collectionType" worked like a charm, but today got this weird case...
Few notes:
1) value="#{bean.modelDS.roles}" actually binds to model which extends Map, so all getters/setters work via Object get(String) / put(String, Object) methods (not sure whether it is relevant ?!;
2) Payara 4.1.2.172 with manually updated JSF to v2.3.2
Will also try later on other project / JSF version, but currently will be very thankful for any ideas what to check!
Thank you!