0
The print below is from the confirmation of a record of my datatable, the popup is opened when you click on the delete record button:
The code of this dialog is as follows::
<p:commandButton icon="ui-icon-trash" action="#{geracaomb.excluir(linha)}" ajax="true" process="@this" update="pesquisa">
<p:confirm header="#{msg['cabecalho.apagar.registro']}" message="#{msg['apagar.registro']}" icon="ui-icon-alert" />
</p:commandButton>
<p:confirmDialog global="true" showEffect="exploud" hideEffect="fade">
<p:commandButton value="Sim" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check"/>
<p:commandButton value="Não" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close"/>
</p:confirmDialog>
I want to put the title (CONFIRMATION) and the 2 buttons (Yes and No) centered, as I do it?
Do you know how I can apply the changes so that my project picks up the new changes ?
– Roknauta
I edited the answer to include method 2, using CSS to change Confirmdialog. Test in your project.
– Marcus Martins
Show, thank you very much.
– Roknauta