Differences between revisions 10 and 11
Revision 10 as of 2005-06-08 23:22:49
Size: 1824
Editor: TimColson
Comment:
Revision 11 as of 2009-09-20 22:06:21
Size: 1842
Editor: localhost
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.

VelocityAndSpringTips (last edited 2009-09-20 22:06:21 by localhost)