|
From: Darren D. <da...@da...> - 2004-07-23 07:35:09
|
> After giving it some more thought, I've just replaced the > Velocity/FreeMarkerFormView subclasses with a "exposeSpringMacroHelpers= " > property in AbstractTemplateView, inherited by VelocityView and > FreeMarkerView. This triggers the exposure of a RequestContext instance > under the name "springMacroRequestContext", as expected by the macros i= n > spring.vm and spring.ftl now. > > There's a new AbstractTemplateViewResolver that provided > "exposeRequestAttributes", "exposeSessionAttributes" and > "exposeSpringMacroHelpers" for all views. I've also added a > FreeMarkerViewResolver as convenience subclass, as recently suggested b= y > Matt Raible. > > I've used the term "Spring macros" rather than "form macros" or "bind > macros", to allow for adding further default macros that do not > necessarily focus on binding data for forms. > > If there aren't any objections, I'm about to commit these changes, as I > believe they are worth it. Darren, what do you think? Do you maybe have > the chance to adapt the docs accordingly? sounds great Juergen - sorry didn't get a chance to look at this and respond last night, the beer fairy seduced me ;-) I'll take a look tonight and update ref docs. When's RC1 going to be released - Sunday? --=20 Darren Davison Public Key: http://www.davison.uk.net/pages/key.htm |