I have an delete button inside my dataTable
, but every time I click on it confirmDialog
does not appear. I'm doing the following:
<p:column style="width: 100px; text-align: center">
<p:button icon="ui-icon-pencil" title="Editar" />
<p:commandButton icon="ui-icon-trash" title="Excluir" oncomplete="confirmacaoExclusao.show()" />
</p:column>
confirmDialog:
<p:confirmDialog header="Exclusão de Produto"
message="Tem certeza que deseja excluir o Produto?"
widgetVar="confirmacaoExclusao" severity="alert">
<p:button value="Não"
onclick="confirmacaoExclusao.hide(); return false" />
<p:commandButton value="Sim" oncomplete="confirmacaoExclusao.hide();" />
</p:confirmDialog>