I have this code where, when changing the value of an input element, I listen and update some other fields.
The problem is that when I change the value of this input field, typing something and click commandButtonwith the identifier: submitit calls the listener (perhaps because the value change is checked during the time blurin the field), but not the listener X, i.e. actionListenerfor commandButton. So I had to press the button again for the listener Xto call.
Of course, it works as expected if I call the blur in the input field by clicking elsewhere, and then click commandButton. It seems that when the blur of the input field coincides with the click commandButton, only the blur occurs - the click of the button is simply ignored. Any ideas?
<p:inputText ...>
<p:ajax event="change" update="..." listener="..." />
</p:inputText>
...
<p:commandButton id="submit" ... actionListener="X" />
EDIT: I am using PrimeFaces v5.1 and JSF v2.1.19, FWIW.
source
share