ctx.getBindContext().getBinder().notifyChange(validationMessages, "creationDate");
}
};
}
public Validator getShippingDateValidator(){
return new Validator(){
public void validate(ValidationContext ctx) {
Date shipping = (Date)ctx.getProperty().getValue();//the main property
Date creation = (Date)ctx.getProperties("creationDate")[0].getValue();//the collected
//do mixed validation, shipping date have to large than creation more than 3 days.
if(!CaldnearUtil.isDayAfter(creation,shipping,3)){