Hi, I am new to Hibernate and JSF.Can I declare a custom validation message besides "required"?
Can I create a ValidatorMessages.properties file to do this?
What is my best course of action, I have three fields for Month, Day, and Year
They all just return "required" when using <h:message> after submitting the form. I am guessing that is what Hibernate is returning?
Here is the code:
Code:
<h:messages id="avglobalMessages" globalOnly="true"
styleClass="errors" /> <h:message id="monthMsg" for="month"
styleClass="errors" /> <h:message id="dayMsg" for="day"
styleClass="errors" /> <h:message id="yearMsg" for="year"
styleClass="errors" />