Differences between revisions 2 and 3
Revision 2 as of 2007-11-01 17:30:21
Size: 5654
Editor: NathanBubna
Comment:
Revision 3 as of 2009-09-20 22:06:17
Size: 5677
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
[wiki:VelocityTools2/VelocityView VelocityView] includes all of the [wiki:VelocityTools2/GenericTools GenericTools] and adds infrastructure and specialized tools for using Velocity in the view layer of web applications (Java EE projects). This includes the VelocityViewServlet or VelocityLayoutServlet for processing Velocity template requests and the VelocityViewTag for embedding Velocity in JSP. [[VelocityTools2/VelocityView|VelocityView]] includes all of the [[VelocityTools2/GenericTools|GenericTools]] and adds infrastructure and specialized tools for using Velocity in the view layer of web applications (Java EE projects). This includes the VelocityViewServlet or VelocityLayoutServlet for processing Velocity template requests and the VelocityViewTag for embedding Velocity in JSP.
Line 5: Line 5:
The default configuration provided for [wiki:VelocityTools2/VelocityView VelocityView] is [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/tools.xml?view=markup here] and [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/tools.xml?view=markup here]. The default configuration provided for [[VelocityTools2/VelocityView|VelocityView]] is [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/tools.xml?view=markup|here]] and [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/tools.xml?view=markup|here]].
Line 18: Line 18:
  * commons-beanutils - core infrastructure, [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/MathTool.java?view=markup MathTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/SortTool.java?view=markup SortTool]   * commons-beanutils - core infrastructure, [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/MathTool.java?view=markup|MathTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/SortTool.java?view=markup|SortTool]]
Line 20: Line 20:
  * commons-lang - [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/EscapeTool.java?view=markup EscapeTool]
  * velocity - [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ClassTool.java?view=markup ClassTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/AbstractSearchTool.java?view=markup  AbstractSearchTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java?view=markup  ContextTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ImportTool.java?view=markup  ImportTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/IteratorTool.java?view=markup  IteratorTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/LinkTool.java?view=markup  LinkTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/MultiViewsTool.java?view=markup  MultiViewsTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewRenderTool.java?view=markup  ViewRenderTool]
  * servlet - all [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ VelocityView] tools except [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewRenderTool.java?view=markup  ViewRenderTool]
  * commons-lang - [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/EscapeTool.java?view=markup|EscapeTool]]
  * velocity - [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ClassTool.java?view=markup|ClassTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/AbstractSearchTool.java?view=markup|AbstractSearchTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java?view=markup|ContextTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ImportTool.java?view=markup|ImportTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/IteratorTool.java?view=markup|IteratorTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/LinkTool.java?view=markup|LinkTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/MultiViewsTool.java?view=markup|MultiViewsTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewRenderTool.java?view=markup|ViewRenderTool]]
  * servlet - all [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/|VelocityView]] tools except [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewRenderTool.java?view=markup|ViewRenderTool]]
Line 37: Line 37:
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/AbstractSearchTool.java?view=markup  AbstractSearchTool] - For doing "searching" and robust pagination of search results. Requires you to create a subclass.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/BrowserTool.java?view=markup  BrowserTool] - For identifying the browser and features thereof requesting the template.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java?view=markup  ContextTool] - For convenient access to ViewContext data and meta-data.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/CookieTool.java?view=markup  CookieTool] - For convenient cookie access and creation.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ImportTool.java?view=markup  ImportTool] - For pulling down textual content from a URL.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/LinkTool.java?view=markup  LinkTool] - For easy building of URLs (both relative or absolute).
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/PagerTool.java?view=markup  PagerTool] - For doing request-based pagination of items in an arbitrary list.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ParameterTool.java?view=markup  ParameterTool] - For easy retrieval and parsing of ServletRequest parameters.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewRenderTool.java?view=markup  ViewRenderTool] - To evaluate and render arbitrary strings of VTL, including recursive rendering.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewResourceTool.java?view=markup  ViewResourceTool] - For simplified access to ResourceBundles for internationalization or other dynamic content needs.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/AbstractSearchTool.java?view=markup|AbstractSearchTool]] - For doing "searching" and robust pagination of search results. Requires you to create a subclass.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/BrowserTool.java?view=markup|BrowserTool]] - For identifying the browser and features thereof requesting the template.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java?view=markup|ContextTool]] - For convenient access to ViewContext data and meta-data.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/CookieTool.java?view=markup|CookieTool]] - For convenient cookie access and creation.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ImportTool.java?view=markup|ImportTool]] - For pulling down textual content from a URL.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/LinkTool.java?view=markup|LinkTool]] - For easy building of URLs (both relative or absolute).
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/PagerTool.java?view=markup|PagerTool]] - For doing request-based pagination of items in an arbitrary list.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ParameterTool.java?view=markup|ParameterTool]] - For easy retrieval and parsing of ServletRequest parameters.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewRenderTool.java?view=markup|ViewRenderTool]] - To evaluate and render arbitrary strings of VTL, including recursive rendering.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewResourceTool.java?view=markup|ViewResourceTool]] - For simplified access to ResourceBundles for internationalization or other dynamic content needs.

Overview

VelocityView includes all of the GenericTools and adds infrastructure and specialized tools for using Velocity in the view layer of web applications (Java EE projects). This includes the VelocityViewServlet or VelocityLayoutServlet for processing Velocity template requests and the VelocityViewTag for embedding Velocity in JSP.

Default Configuration

The default configuration provided for VelocityView is here and here.

Dependencies

TODO: just link to an anchor in a comprehensive dependencies overview page?

VelocityView Object

  • TODO: a writeup and link for this

VelocityViewTag

  • TODO: a writeup and link for this

VelocityViewServlet

  • TODO: a writeup and link for this

VelocityLayoutServlet

  • TODO: a writeup and link for this

Tools

  • AbstractSearchTool - For doing "searching" and robust pagination of search results. Requires you to create a subclass.

  • BrowserTool - For identifying the browser and features thereof requesting the template.

  • ContextTool - For convenient access to ViewContext data and meta-data.

  • CookieTool - For convenient cookie access and creation.

  • ImportTool - For pulling down textual content from a URL.

  • LinkTool - For easy building of URLs (both relative or absolute).

  • PagerTool - For doing request-based pagination of items in an arbitrary list.

  • ParameterTool - For easy retrieval and parsing of ServletRequest parameters.

  • ViewRenderTool - To evaluate and render arbitrary strings of VTL, including recursive rendering.

  • ViewResourceTool - For simplified access to ResourceBundles for internationalization or other dynamic content needs.

VelocityTools2/VelocityView (last edited 2009-09-20 22:06:17 by localhost)