SystemUtils.print("initBinder");
// to actually be able to convert Multipart instance to byte[]
// we have to register a custom editor
binder.registerCustomEditor(byte[].class, new ByteArrayMultipartFileEditor());
binder.registerCustomEditor(BigDecimal.class, new CustomNumberEditor(BigDecimal.class, DecimalFormat.getInstance(RequestContextUtils.getLocale(request)),true));
binder.registerCustomEditor(GregorianCalendar.class,new GregorianCalendarPropertyEditor());
binder.registerCustomEditor( Double.class, new CustomNumberEditor(Double.class, DecimalFormat.getInstance(RequestContextUtils.getLocale(request)),true));
// binder.registerCustomEditor(File.class, new FileEditor());
// binder.registerCustomEditor( Float.class, new CustomNumberEditor(Float.class, DecimalFormat.getInstance(RequestContextUtils.getLocale(request)),true));
// now Spring knows how to handle multipart object and convert them
}