Hi,
I am having one <h:inputText> field and I'm checking validation on that and if the validation fails I'm displaying errors using <rich:message>.
Suppose if there are some 10 to 15 controls on the form and if the error is thrown on first control and my submit button is all the way below the form,once I click on submit button it fails validation but cursor is not pointed on the error control.
Could you please any body advise me on this?
I'm using <a4j:commandButton> to submit the form..
Thanks,
Reddy
you could define focus attribute of a4j:command button to some String bean property. Then using ajaxListener check if there are messages in context. And fill you focus property with the Id of some failed component.