2016-08-19 76 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

相關問題