Closed
Description
Keith Donald opened SPR-6015 and commented
Support for the Formatter/FormatterRegistry SPI/API should be added to DataBinder, as an alternative to working with PropertyEditors. Existing PropertyEditor support should remain unaffected.
New proposed methods:
registerFormatter(Class type, Formatter formatter);
registerFormatter(Class type, String field, Formatter formatter);
setFormatterRegistry(FormatterRegistry);
Issue Links:
- No way to register Formatter instances by field on DataBinder [SPR-6069] #10737 No way to register Formatter instances by field on DataBinder
- "Registering field-specific Formatters" section is not in sync with the codebase [SPR-6171] #10839 "Registering field-specific Formatters" section is not in sync with the codebase
Referenced from: commits 20f5f99