Is there a way to place an error message on a specific field, perhaps with FacesMessage? When I have to do some manual validation without Hibernate Validator, for instance when I check to see if a new username is already in use, I'd like to be able to place the error next to the username field, and highlight it, just as if it had failed validation through the Hibernate Validator.
If I put it in FacesMessage, then it appears wherever I'm spitting out those errors, in a box above the form or something. Anybody know how it is sending those Hibernate Validator messages back to the form?
FacesMessages.instance.addToControle(id,msg); (or something like that)
id: references the component (for instance an inputtextfield/username field)
msg: message to show