public class VelocityJavaScriptContributor extends VelocityContributor
IHeaderResponse.render(org.apache.wicket.markup.head.HeaderItem)| Constructor and Description |
|---|
VelocityJavaScriptContributor(Class<?> clazz,
String templatePath,
org.apache.wicket.model.IModel<? extends Map<?,?>> 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<?,?>> model,
String id)
Use this constructor when Velocity is configured with the
FileResourceLoader. |
| Modifier and Type | Method and Description |
|---|---|
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
detach, escapeHtml, evaluate, getEncoding, setEncodingpublic VelocityJavaScriptContributor(Class<?> clazz, String templatePath, org.apache.wicket.model.IModel<? extends Map<?,?>> model, String id)
clazz - templatePath - model - id - public VelocityJavaScriptContributor(String templatePath, org.apache.wicket.model.IModel<? extends Map<?,?>> model, String id)
FileResourceLoader.
templatePath with then be relative to the loader path configured in velocity.propertiestemplatePath - model - id - public void renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class VelocityContributorCopyright © 2006–2018 Apache Software Foundation. All rights reserved.