0
I need to do mine deleteConfirmationModal
close.
It only works by clicking on NAY.
I need to make him perform the action of YES 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>
What version of Primefaces are you using? Larger than 5?
– igventurelli
Solution posted 2 minutes after question?
– ℛɑƒæĿᴿᴹᴿ
What’s the problem? The site allows you to ask questions with solutions.
– Luiz Lanza