I have implemented a JSF validator based on this example.
How can I trigger it on keyup event of <h:inputText>?
I am using JSF 2.0 and Richfaces 4.1.0 Final.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can attach ajax listeners to DOM events on any JSF HTML input component by
<f:ajax>tag.The
fooValidatorcan be just a simpleValidatorimplementation which you register in the faces context by@FacesValidatorannotation.See also:
In RichFaces it’s not much different. There’s only the
<a4j:ajax>tag which is basically just<f:ajax>on steroids. But it does not really provide additional benefits in this particular case. See also Is there any difference between f:ajax and a4j:ajax?