I've tried this piece of code for submetting a date of birth field on a form :
<h:form>
<h2>JSF Registration App</h2>
<h4>Registration Form</h4>
<table>
<tr>
<td>First Name:</td>
<td>
<h:inputText label="First Name" id="fname" value="#{mybean.firstName}" required="true" />
<h:message for="fname" />
</td>
</tr>
<tr>
<td>
<h:inputText value="#{userBean.dob}" id="dob" required="true" >
<f:convertDateTime pattern="MM-dd-yy"/>
</h:inputText> (mm-dd-yy)
<h:message for="dob"/>
</td>
</tr>
</table>
<p>
<h:commandButton value="clique ici pour valider" action="Register" />
</p>
</h:form>
I got this message after leaving the field empty
(mm-dd-yy) j_idt5:dob : erreur de validation. Vous devez indiquer une valeur.
why there is the jsf automatically generated id " j_idt5:dob" within the message ?