Package 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,org.apache.wicket.IComponentAwareEventSink,org.apache.wicket.markup.html.IComponentAwareHeaderContributor,org.apache.wicket.util.io.IClusterable
public class VelocityJavaScriptContributor extends VelocityContributor
A derivation of VelocityContributor that usesIHeaderResponse.render(org.apache.wicket.markup.head.HeaderItem)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VelocityJavaScriptContributor(Class<?> clazz, String templatePath, org.apache.wicket.model.IModel<? extends Map<String,Object>> model, String id)Use this constructor if you have configured Velocity to use a ClasspathResourceLoader.VelocityJavaScriptContributor(String templatePath, org.apache.wicket.model.IModel<? extends Map<String,Object>> model, String id)Use this constructor when Velocity is configured with theFileResourceLoader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrenderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)-
Methods inherited from class org.apache.wicket.velocity.VelocityContributor
detach, escapeHtml, evaluate, getEncoding, setEncoding
-
-
-
-
Constructor Detail
-
VelocityJavaScriptContributor
public VelocityJavaScriptContributor(Class<?> clazz, String templatePath, org.apache.wicket.model.IModel<? extends Map<String,Object>> 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, org.apache.wicket.model.IModel<? extends Map<String,Object>> model, String id)
Use this constructor when Velocity is configured with theFileResourceLoader. templatePath with then be relative to the loader path configured in velocity.properties- Parameters:
templatePath-model-id-
-
-
Method Detail
-
renderHead
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
- Specified by:
renderHeadin interfaceorg.apache.wicket.markup.html.IComponentAwareHeaderContributor- Overrides:
renderHeadin classVelocityContributor
-
-