I want to update a PrimeFaces selectCheckboxMenu via Javascript with the selection stored on client side.

<h:form id="filter">
      <p:selectCheckboxMenu id="inputType" label="#{msg.labrel}" widgetVar="inputType">
        <f:selectItems value="#{filterAction.types}" var="type" itemValue="#{type.toString()}" itemLabel="#{type.displayName}"  />
      </p:selectCheckboxMenu>
</h:form>

I already tried it via PF('inputType') and $('#filter-inputType').find('input[type=checkbox]').checked=true, but without success any suggestions?

Thanks.

0 Answers