I need to make my deleteConfirmationModal
close.
It only works by clicking NO .
I need to make it execute the SIM action and close the modal.
<p:commandLink title="#{label.REMOVE}" process="@this" styleClass="btn-remove" oncomplete="deleteConfirmationModal.show();"/>
<p:confirmDialog message="#{label.DELETE_CONFIRMATION_MESSAGE}"
header="#{label.HEADER_DELETE_CONFIRMATION_MODAL}" severity="alert"
widgetVar="deleteConfirmationModal" id="deleteConfirmationModalId">
<p:commandLink value="#{label.YES}"
oncomplete="deleteConfirmationModal.hide();"
action="#{controller.actionRemove(item)}"
styleClass="btn-save"
id="buttonYesOption"
update="@form, deleteConfirmationModalId">
</p:commandLink>
<p:commandLink value="#{label.NOT}"
onclick="deleteConfirmationModal.hide()"
styleClass="btn-cancel"
id="buttonNotOption" />
</p:confirmDialog>