org.apache.wicket.velocity
Class VelocityJavascriptContributor

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.apache.wicket.velocity.VelocityContributor
          extended by 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

Constructor Summary
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.
VelocityJavascriptContributor(java.lang.String templatePath, IModel model, java.lang.String id)
          Construct.
 
Method Summary
 void renderHead(IHeaderResponse response)
           
 
Methods inherited from class org.apache.wicket.velocity.VelocityContributor
detach, escapeHtml, evaluate, getEncoding, setEncoding
 
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
 

Constructor Detail

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 -
Method Detail

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-2009 Apache Software Foundation. All Rights Reserved.