Primefaces 5.0 selectCheckboxMenu 组件问题,无法在 ajex 调用后关闭下拉菜单 [英] Primefaces 5.0 selectCheckboxMenu component issue, not able to close dropdown after ajex call
问题描述
PrimeFaces 5.0 selectCheckboxMenu 组件问题,无法在 Ajax 调用后关闭下拉菜单.
PrimeFaces 5.0 selectCheckboxMenu component issue, not able to close drop down after Ajax call.
我想更新带有在 selectCheckboxMenu 组件中选中的复选框数量的标签文本.
I want to update a label text with count of number of checkboxes checked in selectCheckboxMenu component.
下面是我在 .xhtml 文件中的代码.ajax调用后发现错误
Below is my code in .xhtml file. After ajax call I found an error
this.closer 在 primefaces.js 第 22 行中未定义.
<p:selectCheckboxMenu id="pioDocType"
value="#{pioReportActionBean.selectedOutPutData}"
label="#{pioReportActionBean.lbl_docType}" filter="true"
filterMatchMode="startsWith" panelStyle="width:250px"
styleClass="rep_checkbox" widgetVar="myCheckbox">
<f:selectItems value="#{pioReportActionBean.inPutData}"
var="outPutData" itemLabel="#{outPutData.displayName}"
itemValue="#{outPutData.displayId}" />
<p:ajax event="change"
listener="#{pioReportActionBean.populateLabelDocType}"
update="pioDocType" />
</p:selectCheckboxMenu>
我使用的是 Spring 3、PrimeFaces 5.0、JDK 7.
I am using Spring 3 , PrimeFaces 5.0 , JDK 7.
推荐答案
我遇到了同样的问题,解决方案是将 primefaces 的版本更改为 5.1.RC1 (primefaces-5.1.RC1.jar)
I had the same problem and the solution was change the version of primefaces to 5.1.RC1 (primefaces-5.1.RC1.jar)
pom.xml:
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.1.RC1</version>
</dependency>
这篇关于Primefaces 5.0 selectCheckboxMenu 组件问题,无法在 ajex 调用后关闭下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!