I have problems with converting/formatting java.util.Date and java.lang.Double objects.
Date objects don't get the right format when loading. I've registered a CustomDateEditor with
SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yyyy");
binder.registerCustomEditor(Date.class, null, new CustomDateEditor(dateFormat, true));
When loading the form, the field value shows up as "yyyy-MM-dd".
The second problem is with Double objects registered like
binder.registerCustomEditor(Double.class, null, new CustomNumberEditor(Double.class, nf, true));
When submitting a value like "98.99" in the form, Spring saves "9899".
After reloading the value looks like "9899.0".
How can I use these two object types in Spring ?