org.apache.tiles.velocity.template
Class AddListAttributeVModel

Package class diagram package AddListAttributeVModel
java.lang.Object
  extended by org.apache.tiles.velocity.template.AddListAttributeVModel
All Implemented Interfaces:
BodyExecutable

public class AddListAttributeVModel
extends Object
implements BodyExecutable

Wraps AddListAttributeModel to be used in Velocity. For the list of parameters, see AddListAttributeModel#start(java.util.Stack, String) and AddListAttributeModel#end(java.util.Stack).

Since:
2.2.0
Version:
$Rev: 765774 $ $Date: 2009-04-16 23:43:00 +0200 (gio, 16 apr 2009) $

Constructor Summary
AddListAttributeVModel(AddListAttributeModel model)
          Constructor.
 
Method Summary
 org.apache.velocity.runtime.Renderable end(HttpServletRequest request, HttpServletResponse response, org.apache.velocity.context.Context velocityContext)
          Ends the execution of the commands.
 void start(HttpServletRequest request, HttpServletResponse response, org.apache.velocity.context.Context velocityContext, Map<String,Object> params)
          Starts the execution of the commands.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddListAttributeVModel

public AddListAttributeVModel(AddListAttributeModel model)
Constructor.

Parameters:
model - The template model.
Since:
2.2.0
Method Detail

end

public org.apache.velocity.runtime.Renderable end(HttpServletRequest request,
                                                  HttpServletResponse response,
                                                  org.apache.velocity.context.Context velocityContext)
Ends the execution of the commands.

Specified by:
end in interface BodyExecutable
Parameters:
request - The HTTP request.
response - The HTTP response-
velocityContext - The Velocity context.
Returns:
A renderable object. It does not necessary render anything.

start

public void start(HttpServletRequest request,
                  HttpServletResponse response,
                  org.apache.velocity.context.Context velocityContext,
                  Map<String,Object> params)
Starts the execution of the commands.

Specified by:
start in interface BodyExecutable
Parameters:
request - The HTTP request.
response - The HTTP response-
velocityContext - The Velocity context.
params - The map of the parameters.


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.