Primefaces 4.0到6.2迁移,那时Ajax更新事件无法正常工作
<p:selectOneMenu id="ddl_district"
value="#{village_Entry.ddl_district}"
valueChangeListener="#{village_Entry.ddl_district_changed}"
styleClass="component-width">
<f:selectItems value="#{village_Entry.ddl_district_options}"/>
<p:ajax event="change"
Process="ddl_district"
Update="ddl_taluka"/>
</p:selectOneMenu>
public void ddl_district_changed(ValueChangeEvent event) {
ddl_district = event.getNewValue().toString();
setDdl_taluka();
}
答案 0 :(得分:0)
您应该更新更准确:
<p:selectOneMenu id="ddl_district">
<p:ajax event="change"
Process="ddl_district"
Update=":FORM_NAME:ddl_taluka"/>