Joined: Sat Oct 10, 2009 4:47 am Posts: 2
|
@NotEmpty(message="Please Enter the Date of Birth") @Past public Date dob; Hi, I am using hibernate validation to validate my registeration form..... I am using jsf rich calendar <rich:calendar datePattern="dd-MM-yyyy" id="dob" value="#{demo.dob}" > <rich:beanValidator summary="Invalid name"/> </rich:calendar> <rich:message for="dob" style="color:red"/>
But validation takes place only its a future date.... It doesnt validate when the field is leave as a blank.... please anyone help...!!!!!!!
|
|