Pessoal,
Quando eu clico no botao gravar, aparece o modal de confirmacao SIM ou NÃO (Conforme tela1), esta ok, porem quando eu clico na lupa da guia e aparece a tela2, porem quando eu clico por exemplo para pesquisar o nro da guia e pressiono ENTER, aparece o modal, (Conforme tela2).
Segue abaixo o codigo:
<h:panelGrid columns="1" cellpadding="3" style="text-align:center;">
<h:panelGroup >
<p:commandButton value="Gravar" style="height: 35px; font-size: 12px" oncomplete="popup.show()"/>
</h:panelGroup>
</h:panelGrid>
<p:dialog id="modalpopup" header=""
widgetVar="popup"
height="140"
width="240" >
<p:panel style="width:210px;height:80px" >
<h:outputText value="#{msg.deseja_salvar_registro}" style="font-size: 13px;color: #006600;font-weight: bold;"/>
<br/>
</p:panel>
<h:panelGrid columns="2" cellpadding="3">
<p:commandButton value="Sim" actionListener="#{cadguiaMbeancomplem.salvar}" style="height: 35px; font-size: 12px" oncomplete="popup.hide()"/>
<p:commandButton value="Não" style="height: 35px; font-size: 12px" oncomplete="popup.hide()"/>
</h:panelGrid>
</p:dialog>