use of org.springframework.beans.propertyeditors.CustomDateEditor in project Asqatasun by Asqatasun.
the class AbstractUserAndContractsController method initBinder.
@InitBinder
protected void initBinder(WebDataBinder binder) {
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false));
}
use of org.springframework.beans.propertyeditors.CustomDateEditor in project SpringStepByStep by JavaProgrammerLB.
the class TodoController method initBinder.
@InitBinder
public void initBinder(WebDataBinder binder) {
SimpleDateFormat dateFormat = new SimpleDateFormat(TodoListUtils.DATE_FORMAT);
binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false));
binder.registerCustomEditor(Priority.class, new TodoPriorityPropertyEditor());
}
Aggregations