2012-11-21 18 views

回答

0

檢查VDL:http://www.primefaces.org/docs/vdl/3.4/primefaces-p/commandButton.html

使用動作或用於ActionListener的豆,並且例如爲的onclick客戶機側JavaScript回調

編輯(添加的示例):

<h:form id="formId"> 
    <p:commandButton value="Button" update="formId" id="ajax" 
     actionListener="#{myBean.serverSideBeanMethod}" onclick="clientSideJavaScriptFunction()" /> 
</h:form> 
相關問題