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