org.apache.wicket.velocity
Class VelocityJavaScriptContributor
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.velocity.VelocityContributor
org.apache.wicket.velocity.VelocityJavaScriptContributor
- All Implemented Interfaces:
- Serializable, IClusterable
public class VelocityJavaScriptContributor
- extends VelocityContributor
A derivation of VelocityContributor that uses
IHeaderResponse.renderJavaScript(CharSequence, String)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityJavaScriptContributor
public VelocityJavaScriptContributor(Class<?> clazz,
String templatePath,
IModel<? extends Map<?,?>> model,
String id)
- Use this constructor if you have configured Velocity to use a ClasspathResourceLoader. The
templatePath will then be relative to the package for clazz
- Parameters:
clazz - templatePath - model - id -
VelocityJavaScriptContributor
public VelocityJavaScriptContributor(String templatePath,
IModel<? extends Map<?,?>> model,
String id)
- Use this constructor when Velocity is configured with the
FileResourceLoader.
templatePath with then be relative to the loader path configured in velocity.properties
- Parameters:
templatePath - model - id -
renderHead
public void renderHead(Component component,
IHeaderResponse response)
- Overrides:
renderHead in class VelocityContributor
- See Also:
org.apache.wicket.velocity.VelocityContributor#renderHead(org.apache.wicket.markup.html.
IHeaderResponse)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.