public class VelocityContributor extends Behavior
| Constructor and Description |
|---|
VelocityContributor(String templateName,
IModel<? extends Map<?,?>> model)
The templateName needs to have the full path relative to where the resource loader starts
looking.
|
| Modifier and Type | Method and Description |
|---|---|
void |
detach(Component c) |
protected boolean |
escapeHtml() |
protected CharSequence |
evaluate()
Evaluate the template.
|
String |
getEncoding() |
void |
renderHead(Component component,
IHeaderResponse response) |
void |
setEncoding(String encoding) |
afterRender, beforeRender, bind, canCallListenerInterface, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, onRemove, unbindpublic VelocityContributor(String templateName, IModel<? extends Map<?,?>> model)
Packages for this.templateName - model - public String getEncoding()
public void renderHead(Component component, IHeaderResponse response)
renderHead in interface IComponentAwareHeaderContributorrenderHead in class Behaviorpublic void setEncoding(String encoding)
encoding - The encodingprotected boolean escapeHtml()
protected final CharSequence evaluate()
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.