full support for formatters on array/collection elements (SPR-6504)

This commit is contained in:
Juergen Hoeller
2009-12-04 00:34:40 +00:00
parent 388edd7aaa
commit e161c93f8d
6 changed files with 97 additions and 25 deletions

View File

@@ -117,10 +117,11 @@ public abstract class AbstractPropertyBindingResult extends AbstractBindingResul
if (this.conversionService != null) {
// Try custom formatter...
TypeDescriptor td = getPropertyAccessor().getPropertyTypeDescriptor(fixedField);
return this.conversionService.convert(value, td, TypeDescriptor.valueOf(String.class));
} else {
return value;
if (td != null) {
return this.conversionService.convert(value, td, TypeDescriptor.valueOf(String.class));
}
}
return value;
}
/**