Bom dia pessoal.
Estou com um probleminha na hora de chamar um p:confirmdialog para excluir determinada linha de uma datatable.
Eu consigo chamar ele, só que ao clicar no botão excluir o confirmdialog aparece e ficasse atras do modal travando a minha tela.
Segue o xhtml:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</h:head>
<ui:composition template="/template.xhtml">
<ui:define name="centro">
<h:form>
<h1>Telefones</h1>
<p:dataTable value="#{telNumberTypeBean.telNumberTypes}"
var="numberType" widgetVar="telNumberType"
mptyMessage="Not empty projectMB.projects" paginator="true"
rows="10" selection="#{telNumberTypeBean.selcTelNumberTypes}"
selectionMode="single" rowKey="#{numberType.number}">
<f:facet name="header">
<p:outputPanel>
<h:outputText value="Search all fields: " />
<p:inputText id="globalFilter" onkeyup="telNumberType.filter()"
style="width:150px" />
</p:outputPanel>
</f:facet>
<p:column headerText="ID" footerText="codigos"
filterMatchMode="codigos">
<h:outputText value="#{numberType.id}" />
</p:column>
<p:column headerText="Numero" footerText="numbers"
sortBy="#{numberType.number}" filterMatchMode="numbers"
filterBy="#{numberType.number}">
<h:outputText value="#{numberType.number}" />
</p:column>
<p:column headerText="Cor Claim" footerText="claims"
sortBy="#{numberType.corClaim}" filterMatchMode="claims"
filterBy="#{numberType.corClaim}">
<h:outputText value="#{numberType.corClaim}" />
</p:column>
<p:column headerText="Cor" footerText="cors" filterMatchMode="cors"
filterBy="#{numberType.cor}" sortBy="#{numberType.corClaim}">
<h:outputText value="#{numberType.cor}" />
</p:column>
</p:dataTable>
</h:form>
<p:commandButton value="Excluir" onclick="confirmation.show()"
type="button" ajax="false"/>
<h:form>
<p:confirmDialog message="Deseja realmente excluir este item?"
header="Inciando processo de exclusão" severity="alert"
widgetVar="confirmation">
<p:commandButton id="btnSim" value="Sim"
oncomplete="confirmation.hide()" ajax="false"
action="#{telNumberTypeBean.removeTelNumberType}" />
<p:commandButton id="btnNao" value="Não" onclick="confirmation.hide()"
type="button" ajax="false"/>
</p:confirmDialog>
</h:form>
</ui:define>
</ui:composition>
</html>
Se alguem puder me ajudar
Obrigado