I have a PF's input text with ajax blur event and a command button that executes some action. If I enter some text in inputText and click on a commandButton, an ajax blur listener is executed, not a commandButton action, which is pretty much expected.
Example code:
<p:inputText id="inTest" value="#{bean.input}" >
<p:ajax event="blur" listener="#{bean.doOnBlur}" />
</p:inputText>
<p:commandButton id="btnTest" action="#{bean.doBtnClick}" />
Is there any way to execute both methods sequentially (first doOnBlur
and then doBtnClick
) and how do I achieve that?
Using PF 5.3 (also tried with 6.0), MyFaces 2.0.17, runnino on WebSphere Portal 7 (it's a portlet).