How to number JSF error messages and attach number to invalid component

Posted by Pich on Stack Overflow See other posts from Stack Overflow or by Pich
Published on 2010-03-23T21:56:29Z Indexed on 2010/03/24 0:33 UTC
Read the original article Hit count: 422

I want to number any JSF error messages (e.g. validation, conversion messages) that appears if a user enters invalid input in a couple of input fields. For example like this when the user sends the form:


  1. Name cannot contain numbers
  2. E-mail is incorrect

----- Form ------

(1) Name: John 13 Doe

Age: 30

(2) E-mail: myemail@domain


How can I do this?

Best regards

© Stack Overflow or respective owner

Related posts about jsf

Related posts about error-handling