我试过这样的事情:
<p:commandButton type="push" value="Ack" disabled="false"
oncomplete="bean.method2()" update=":form:alarmTable"
action="#{bean.method1()}"
但是method2不会调用,否则:
<p:commandButton type="push" value="Ack" disabled="false"
oncomplete="alert('onComplete')" update=":form:alarmTable"
action="#{bean.method1()}"
按预期工作。
我想实现下一个动作链:method1-update-method2。怎么办?