I can not select multiple objects from my components

2

I'm using a component of primefaces, but when I select multiple items from this component I can not select.

I'm using an Enum, needs to be an arrayList?

<h:outputLabel for="servico" value="Serviço:" />
    <p:selectCheckboxMenu id="servico" value="#{servicoBean.servico.tipoServico}" label="-- Selecione --" multiple="true"
          filter="true" filterMatchMode="startsWith" panelStyle="width:250px" required="true">
          <f:selectItems value="#{servicoBean.tipoServicos}" var="tpServ" itemLabel="#{tpServ.descricao}" itemValue="tpServ" />
    </p:selectCheckboxMenu>
    
asked by anonymous 15.03.2017 / 20:23

1 answer

0

The variable servic.Bean.servico.Service type must be a type that receives several objects, but you also need a converter because the selectItems is populated with SelectItem objects and not with Service Type.

    
08.01.2018 / 19:07