Open p:confirmDialog on clicking of p:commandLink
问题 I am trying to open a PrimeFace ConfirmDialog on clicking of a PrimeFace CommandLink. But when the link is clicked the dialog is opened for a moment but vanishes instantly, I guess the page is being submitted. Here is the code: <p:commandLink value="Delete" onclick="confirmation.show()" /> <p:confirmDialog message="Are you sure, you want to delete ?" header="Initiating deleting process" widgetVar="confirmation"> <p:commandButton value="Yes Sure" onclick="confirmation.hide()" actionListener="#