Boa noite a todos!
Estou com um problema ao usar o p:commandButton dentro de um p:datatable
o botão de alterar e excluir não executa o actionListener, tampouco o action
não sei mais o que fazer
alguém já passou por isso e tem como me ajudar?
segue abaixo html
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:df="http://www.dataci.es.gov.br/ui">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<h:form id="formNoti" style="font-size:11px">
<table style="z-index: 500" id="tabela">
<tr><td height="20px"></td></tr>
<tr>
<td align="right" colspan="2">
<h:inputHidden id="idPont" value="#{TrNotificacaoSB.entidade.notiNumPontos}" />
<df:inputTextID value="#{TrNotificacaoSB.entidade.notiCodigo}" id="codigo" text="Código"/>
<!-- outros campos do formulario -->
</td>
</tr>
<tr>
<td align="right" colspan="2">
<hr />
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="125px" align="right" style="height:25px">
Endereco <p:spacer width="5"/>
</td>
<td>
<p:commandButton value="Adicionar" disabled="#{TrNotificacaoSB.entidade.notiCodigo == null}" actionListener="#{TrEnderecoSB.prepararAdicionar}" style="font-size: 10px" oncomplete="manEnd.show();" ajax="true" update="@([id$=manEnd])"/>
<p:dataTable id="tabelaEnex" var="list" value="#{TrEnderecoSB.listEntityTabular}" style="font-size: 10px" rowKey="#{list.enexCodigo}" selectionMode="single">
<p:column headerText="Logradouro" style="width: 30%">#{list.enexTipoLogr} #{list.enexTituAbr} #{list.enexLogrnom}</p:column>
<p:column headerText="Bairro" style="width: 20%">#{list.enexBairnom}</p:column>
<p:column headerText="Cidade" style="width: 20%">#{list.enexCidade}</p:column>
<p:column headerText="Estado" style="width: 15%">#{list.enexUf} - #{list.enexEstado}</p:column>
<p:column headerText="Ações" style="width: 15%"> <center>
<p:commandButton value="Alterar" action="#{TrEnderecoSB.prepararAlterar}" style="font-size:10px" oncomplete="manEnd.show();" ajax="true" update="@([id$=manEnd])"/>
<p:commandButton value="Deletar" actionListener="#{TrEnderecoSB.deletar()}" style="font-size:10px" update="tabelaEnex"/>
</center>
</p:column>
</p:dataTable>
</td>
</tr>
</table>
<hr />
</td>
</tr>
</table>
</h:form>
<p:dialog modal="true" dynamic="true" header="Endereco" widgetVar="manEnd" resizable="true" width="700" id="manEnd" prependId="false">
<ui:include src="/cadastro/FrmTrEndereco.xhtml"></ui:include>
</p:dialog>
</ui:composition>