Do not submit with just 1 form click if focus is in a p: ajax field

0

I'm not able to submit the form with just one click. When I click "Ok" the field loses Focus and processes ajax. Then I have to click again to send.

...

<p:outputLabel value="Teste:" />                        
<p:inputText value="#{testeController.campoTeste}" id="campoTeste">
    <p:ajax listener="#{testePontoController.testeAjax}" event="blur" update="@this"/>
</p:inputText>

...

<p:commandButton value="Ok" action="#{testeController.cadastrarTest()}"/>

....

Does anyone know how I can fix this?

Thank you

    
asked by anonymous 09.07.2015 / 20:25

1 answer

0

I was unable to resolve the way I wanted, I removed the p:ajax tag and now I'm checking on the Controller at the time of the commit .

    
12.07.2015 / 04:41