点击confirmDialog
后我想要yes
做一些操作,然后更新特定表格,最后隐藏确认对话框,但是当我使用update=":form"
时,对话框没有隐藏
这是我的确认对话:
<p:confirmDialog widgetVar="changeTimeDialog" header="Time expired"
closeOnEscape="true"
severity="alert" global="true"
message="change Start Time">
<p:commandButton process="@this" value="yes" icon="ui-icon-check"
actionListener="#{bean.changeTime}"
oncomplete="PF('changeTimeDialog').hide()" update=":form"/>
<p:commandButton value="#{msg['no']}" type="button" styleClass="ui-confirmdialog-no"
icon="ui-icon-close" onclick="PF('changeTimeDialog').hide()"/>
</p:confirmDialog>