我有一个对话框和两个命令按钮。单击该选项后,对话框并没有消失。下面是代码片段。我正在使用该confirmation.hide()
选项。
<p:confirmDialog
message="Are you sure about deleting the substudyplan?"
id="confirmation"
header="Confirmation Deleting substudyplan" severity="alert"
appendToBody="TRUE" widgetVar="cd">
<p:commandButton value="Yes Sure"
actionListener="#{editBean.deleteSubStudyPlan(selectedRow)}"
update=":studyPlanEditForm"
oncomplete="confirmation.hide()" />
<p:commandButton value="Not Yet" onclick="confirmation.hide();"
type="button" />
</p:confirmDialog>