public class VelocityJavaScriptContributor extends VelocityContributor
IHeaderResponse.render(org.apache.wicket.markup.head.HeaderItem)| Constructor and Description |
|---|
VelocityJavaScriptContributor(Class<?> clazz,
String templatePath,
IModel<? extends Map<?,?>> model,
String id)
Use this constructor if you have configured Velocity to use a ClasspathResourceLoader.
|
VelocityJavaScriptContributor(String templatePath,
IModel<? extends Map<?,?>> model,
String id)
Use this constructor when Velocity is configured with the
FileResourceLoader. |
| Modifier and Type | Method and Description |
|---|---|
void |
renderHead(Component component,
IHeaderResponse response) |
detach, escapeHtml, evaluate, getEncoding, setEncodingafterRender, beforeRender, bind, canCallListenerInterface, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, unbindpublic VelocityJavaScriptContributor(Class<?> clazz, String templatePath, IModel<? extends Map<?,?>> model, String id)
clazz - templatePath - model - id - public VelocityJavaScriptContributor(String templatePath, 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(Component component, IHeaderResponse response)
renderHead in interface IComponentAwareHeaderContributorrenderHead in class VelocityContributorCopyright © 2006-2012 Apache Software Foundation. All Rights Reserved.