title: How to number JSF error messages and attach number to invalid component
body: <p>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:</p>
  
  <hr>
  
  <ol>
  <li>Name cannot contain numbers</li>
  <li>E-mail is incorrect</li>
  </ol>
  
  <p>----- Form ------</p>
  
  <p>(1) Name: John 13 Doe</p>
  
  <p>Age: 30</p>
  
  <p>(2) E-mail: myemail@domain</p>
  
  <hr>
  
  <p>How can I do this?</p>
  
  <p>Best regards</p>