I have a JSF and PrimeFaces 4.0 system and I have a <p: calendar>
field in which I made the treatment not to load dates in the current day's calendar up to -50 years old.
But even so, the user can type it through the keyboard and insert it into the database.
I need a method to not include such a date, what would be the best way to do it?
Here is an example of the class:
public class DocumentoClienteModel {
private Date dateInicio;
public Date getDtInicio() {
return dtInicio;
}
public void setDtInicio(final Date dtInicio) {
this.dtInicio = dtInicio;
}
}