JSF commandbutton works on second and subsequent click but not on the initial click. I am working with JSF 2.2!
I see that there is a work around to get this to work by adding a selectBooleanCheckbox tag, forcing each click in checkbox call JSF request and don't wait for commandButton submit. In this way when commandButton is clicked all checkbox was processed, as found in this post.
I would want to know if there is a way to get the commandbutton itself to work for the first click without having to add any additional checkboxes. Any ideas?
Below is the code-snippet that I am working on,
<h:commandButton event="click" value="Send">
<f:ajax listener="#{managedBeanName.methodToExcecute}"/>
</h:commandButton>