|
Size: 1824
Comment:
|
← Revision 11 as of 2009-09-20 22:06:21 ⇥
Size: 1842
Comment: converted to 1.6 markup
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 5: | Line 5: |
| * Of course, you have already read the [http://static.springframework.org/spring/docs/1.2.1/reference/view.html#view-velocity Reference Manual] and API for [http://static.springframework.org/spring/docs/1.2.1/api/org/springframework/ui/velocity/package-summary.html Velocity in general] and [http://static.springframework.org/spring/docs/1.2.1/api/org/springframework/web/servlet/view/velocity/package-summary.html as a view component]. | * Of course, you have already read the [[http://static.springframework.org/spring/docs/1.2.1/reference/view.html#view-velocity|Reference Manual]] and API for [[http://static.springframework.org/spring/docs/1.2.1/api/org/springframework/ui/velocity/package-summary.html|Velocity in general]] and [[http://static.springframework.org/spring/docs/1.2.1/api/org/springframework/web/servlet/view/velocity/package-summary.html|as a view component]]. |
| Line 7: | Line 7: |
| * Toolbox support is provided by [http://static.springframework.org/spring/docs/1.2.1/api/org/springframework/web/servlet/view/velocity/VelocityToolboxView.html VelocityToolboxView]. | * Toolbox support is provided by [[http://static.springframework.org/spring/docs/1.2.1/api/org/springframework/web/servlet/view/velocity/VelocityToolboxView.html|VelocityToolboxView]]. |
| Line 9: | Line 9: |
| * You can hard code tools by subclassing and overriding [http://static.springframework.org/spring/docs/1.2.1/api/org/springframework/web/servlet/view/velocity/VelocityView.html#exposeHelpers(org.apache.velocity.context.Context,%20javax.servlet.http.HttpServletRequest) VelocityView#exposeHelpers]. (Maarten Bosteels) | * You can hard code tools by subclassing and overriding [[http://static.springframework.org/spring/docs/1.2.1/api/org/springframework/web/servlet/view/velocity/VelocityView.html#exposeHelpers(org.apache.velocity.context.Context,%20javax.servlet.http.HttpServletRequest)|VelocityView#exposeHelpers]]. (Maarten Bosteels) |
| Line 11: | Line 11: |
| * 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. | * 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. |
| Line 13: | Line 13: |
| * 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]. | * 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]]. |
| Line 15: | Line 15: |
| * Layout support is provided by [http://static.springframework.org/spring/docs/1.2.1/api/org/springframework/web/servlet/view/velocity/VelocityLayoutView.html VelocityLayoutView]. | * Layout support is provided by [[http://static.springframework.org/spring/docs/1.2.1/api/org/springframework/web/servlet/view/velocity/VelocityLayoutView.html|VelocityLayoutView]]. |
| Line 17: | Line 17: |
| * 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. | * 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. |
Let's see if we can gather tips on using Velocity with Spring.
To get started, take a look at VelocityAndSpringStepByStep.
Of course, you have already read the Reference Manual and API for Velocity in general and as a view component.
Toolbox support is provided by VelocityToolboxView.
You can hard code tools by subclassing and overriding VelocityView#exposeHelpers. (Maarten Bosteels)
For VelocityTools 1.2, you might want to apply 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 JIRA SPR-980.
Layout support is provided by VelocityLayoutView.
You might want to apply this patch if you want to configure the layout using a VelocityViewResolver type view resolver.