Dear Wiki user, You have subscribed to a wiki page or wiki category on "Jakarta-velocity Wiki" for change notification.
The following page has been changed by ShinobuKawaiYoshida: http://wiki.apache.org/jakarta-velocity/VelocityAndSpringTips The comment on the change is: It would be great if we could inject Velocity tools from the Spring context. ------------------------------------------------------------------------------ * Of course, you have already read the [http://static.springframework.org/spring/docs/1.2/reference/view.html#view-velocity Reference Manual] and API for [http://static.springframework.org/spring/docs/1.2/api/org/springframework/ui/velocity/package-summary.html Velocity in general] and [http://static.springframework.org/spring/docs/1.2/api/org/springframework/web/servlet/view/velocity/package-summary.html as a view component]. - * Toolbox support is provided by [http://static.springframework.org/spring/docs/1.2/api/org/springframework/web/servlet/view/velocity/VelocityToolboxView.html VelocityToolboxView]. I'm not sure if you can inject a tool from the !ApplicationContext to the Velocity Context... + * Toolbox support is provided by [http://static.springframework.org/spring/docs/1.2/api/org/springframework/web/servlet/view/velocity/VelocityToolboxView.html VelocityToolboxView]. * You can hard code tools by subclassing and overriding [http://static.springframework.org/spring/docs/1.2/api/org/springframework/web/servlet/view/velocity/VelocityView.html#exposeHelpers(org.apache.velocity.context.Context,%20javax.servlet.http.HttpServletRequest) VelocityView#exposeHelpers]. (Maarten Bosteels) * For VelocityTools 1.2, you might want to apply [http://opensource.atlassian.com/projects/spring/browse/SPR-979 this patch] to set the !VelocityEngine so tools like !ViewRenderTool will work. + * It would be great if we could inject Velocity tools from the Spring context. See [http://opensource.atlassian.com/projects/spring/browse/SPR-980 JIRA SPR-980]. + * Layout support is provided by [http://static.springframework.org/spring/docs/1.2/api/org/springframework/web/servlet/view/velocity/VelocityLayoutView.html VelocityLayoutView]. * You might want to apply [http://opensource.atlassian.com/projects/spring/browse/SPR-941 this patch] if you want to configure the layout using a !VelocityViewResolver type view resolver. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
