[英]primefaces dropdowns not working with ajax JSF2
I have a big problem with selectOnMenu in JSF2, i tried to use this component with but not working , i tested also the primefaces example http://www.primefaces.org/showcase/ui/ajax/dropdown.xhtml but without any new result . 我在JSF2中使用selectOnMenu遇到了一个大问题,我尝试将此组件与但不能一起使用,但我也测试了primefaces示例http://www.primefaces.org/showcase/ui/ajax/dropdown.xhtml,但没有任何新功能结果。
i think that i miss some config or filter about ajax in my project or my page. 我想我在我的项目或页面中错过了一些有关ajax的配置或过滤器。
Here is dropdown code : 这是下拉代码 :
<p:selectOneMenu style="width:300px;" value="#{parameterBean.name}">
<f:selectItem itemLabel="Select parameter Type" itemValue="" noSelectionOption="true" />
<f:selectItems value="#{parameterTypeBean.listParameterTypes}" var="ptype" itemValue="#{ptype.id}" itemLabel="#{ptype.name}" />
<p:ajax listener="#{parameterBean.serviceChange}" event="change" update="pTable" process="@form"/>
</p:selectOneMenu>
This is my simple actionBean : 这是我简单的actionBean :
public void serviceChange() {
System.out.println("change");
}
Can you help me to resolve this problem ? 您能帮我解决这个问题吗?
删除process =“ @ form”,这样
<p:ajax listener="#{parameterBean.serviceChange}" event="change" update="pTable"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.