My requirement is to validate Ui component values using java script function. i would like to invoke backing bean method, once the validation is successful. How can i make it possible this requirement using primefaces 2.2 and java script. Here is the sample piece of code that i am using:
<p:commandButton id="saveButton" value="#{msgs['button.save.label']}"
image="ui-icon #{msgs['button.save.icon.class']}"
actionListener="#{testBean.saveValues}"/>