2016-08-19 156 views

回答

0

问题解决。书写时正常输入不保存到变量,但它可以通过AJAX来完成:<p:ajax event="keyup" process="@widgetVar(inputID)"/>

-1

过程属性避免你在AJAX丢失数据调用:

<p:ajax process="@form" update="formId" actionListener="#{bean.method}" /> 
+1

'过程=“@形式”'是默认值:https://stackoverflow.com/questions/25339056/understanding-primefaces-process-update-and-jsf-fajax-execute-render-attributes – Kukeltje

相关问题