NumberFormat nf = NumberFormat.getNumberInstance(request.getLocale());
nf.setMaximumFractionDigits(7);
binder.registerCustomEditor(Integer.class, null, new CustomNumberEditor(Integer.class, null, true));
binder.registerCustomEditor(Integer.class, null, new CustomNumberEditor(Integer.class, null, true));
binder.registerCustomEditor(byte[].class, new ByteArrayMultipartFileEditor());
SimpleDateFormat dateFormat = new SimpleDateFormat(getText("date.format", request.getLocale()));
dateFormat.setLenient(false);
binder.registerCustomEditor(Date.class, null, new CustomDateEditor(dateFormat, true));
nf.setMinimumFractionDigits(0);
binder.registerCustomEditor(Double.class, new CustomNumberEditor(Double.class, null, true));