I had the same problem.
My page is large vertically, so when using op: confirmDialog it is not shown.
Checking the source code, I found the css attribute "top" was the value 980px. But my page has a maximum of 900px.
Then the confirmDialog is not shown.
I solved this as follows:
Code: Select all
confirmation.content.parent().css('top', '100px');
on this part
Code: Select all
<p:commandButton disabled="#{ not empty pedidoBean.pedido.notaFiscal or empty pedidoBean.pedido.id }"
value="Gerar Nota Fiscal" image="ui-icon-arrowthick-1-ne"
onclick="confirmation.show(); confirmation.content.parent().css('top', '100px');" type="button"/>
<p:confirmDialog message="Realmente deseja gerar uma Nota Fiscal a partir desse pedido? (O pedido não poderá mais ser alterado)" modal="true"
header="Atenção" widgetVar="confirmation" showEffect="fade">
<p:commandButton value="Sim" oncomplete="confirmation.hide(); geracaoNotaCompleta(xhr, status, args);"
action="#{ pedidoBean.gerarNotaFiscal }" image="ui-icon ui-icon-check"/>
<p:commandButton value="Não" onclick="confirmation.hide()" type="button" image="ui-icon ui-icon-close" />
</p:confirmDialog>
Any suggestion?