org.apache.wicket.velocity
Class VelocityJavascriptContributor
java.lang.Object
org.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.velocity.VelocityContributor
org.apache.wicket.velocity.VelocityJavascriptContributor
- All Implemented Interfaces:
- java.io.Serializable, IBehavior, IClusterable, IHeaderContributor
public class VelocityJavascriptContributor
- extends VelocityContributor
A derivation of VelocityContributor that uses
wicket.markup.html.IHeaderResponse#renderJavascript(CharSequence, String)
- See Also:
- Serialized Form
| Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
afterRender, beforeRender, bind, cleanup, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onComponentTag, onException, onRendered, rendered |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityJavascriptContributor
public VelocityJavascriptContributor(java.lang.Class clazz,
java.lang.String templatePath,
IModel model,
java.lang.String id)
- Ctor
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(java.lang.String templatePath,
IModel model,
java.lang.String id)
- Construct.
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(IHeaderResponse response)
- Specified by:
renderHead in interface IHeaderContributor- Overrides:
renderHead in class VelocityContributor
- See Also:
VelocityContributor.renderHead(org.apache.wicket.markup.html.IHeaderResponse)
Copyright © 2004-2008 Apache Software Foundation. All Rights Reserved.