-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Constraint wrkdate = new Constraint() {
public void validate(Component comp, Object value) throws WrongValueException {
System.out.println("working date value"+wrkdate);
if (value == null || value.toString().trim().equals(""))
{
throw new WrongValueException(comp, "Please input before 2 working date");
}
GeneralDAO generalDAO = SpringUtil.getBean("generalDAO");
if (generalDAO.find(Stock.class, value.toString()) == null){
throw new WrongValueException(comp, "This stock number does not exist");
}
}
};
Asked: 2012-03-20 03:29:36 +0800
Seen: 84 times
Last updated: Mar 20 '12