Feb 4th, 2011, 04:54 AM
Roo 1.1.1 registerConverters no longer supported
So I have just updated to Roo 1.1.1 and after compiling I get a bunch of these errors:
The attribute registerConverters is undefined for the annotation type RooWebScaffold
So I guess my question is:
Can I just remove these annotation properties or do I need to do anything else to ensure that my custom converters are used properly?
Is there some info somewhere regarding this change and converters in general?
Feb 4th, 2011, 06:55 AM
from @benalexau on twitter:
@TiGz_UK Take a peek at http://is.gd/MeNLuD for the #SpringRoo 1.1.1 upgrade notes (see the 2nd bullet point)
The relevant points being:
Converters for displaying related entities on JSP pages are now registered from a centralized ConversionService artifact rather than from individual controllers. The change is transparent if you've never set @RooWebScaffold(registerConverters=false) or plugged in a custom ConversionService through <mvc:annotation-driven conversion-service="myConversionService"/>. If you have then read on.
Remove all "registerConverters" attributes from @RooWebScaffold annotations and the "conversion-service" attribute from <mvc:annotation-driven/> if set. Then run the Spring Roo 1.1.1 shell and let it install the new ConversionService. When Roo is done making changes, manually move any custom getXxxConverter() methods to the new ConversionService, delete the GenericConversionService field from all controllers that have it, and delete any @PostContruct methods used to register the converters. If you had previously configured your own ConversionService, move any converters or formatter registrations to the new ConversionService installed by Spring Roo.