title: Primefaces 5.0 selectCheckboxMenu component issue, not able to close dropdown after ajex call
body: <p>PrimeFaces 5.0 selectCheckboxMenu component issue, not able to close drop down after Ajax call.  </p>
  
  <p>I want to update a label text with count of number of checkboxes checked in selectCheckboxMenu component.</p>
  
  <p>Below is my code in .xhtml file.  After ajax call I found an error</p>
  
  <p><code>this.closer is undefined in primefaces.js line 22.</code></p>
  
  <pre class="lang-xhtml prettyprint-override"><code>&lt;p:selectCheckboxMenu id="pioDocType"
                        value="#{pioReportActionBean.selectedOutPutData}"
                        label="#{pioReportActionBean.lbl_docType}" filter="true"
                        filterMatchMode="startsWith" panelStyle="width:250px"
                        styleClass="rep_checkbox" widgetVar="myCheckbox"&gt;
  
     &lt;f:selectItems value="#{pioReportActionBean.inPutData}"
                    var="outPutData" itemLabel="#{outPutData.displayName}"
                    itemValue="#{outPutData.displayId}" /&gt;
      &lt;p:ajax event="change"
              listener="#{pioReportActionBean.populateLabelDocType}"
              update="pioDocType" /&gt;
  
  &lt;/p:selectCheckboxMenu&gt;
  </code></pre>
  
  <p>I am using Spring 3 , PrimeFaces 5.0 , JDK 7.</p>