public class VelocityAttributeRenderer extends AbstractTypeDetectingAttributeRenderer
VelocityView to render the response.setParameter(String, String) for
all the parameters that you want to set, and then call commit().applicationContext, attributeEvaluatorFactory, contextFactory| Constructor and Description |
|---|
VelocityAttributeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits the parameters and makes this renderer ready for the use.
|
boolean |
isRenderable(java.lang.Object value,
Attribute attribute,
TilesRequestContext request)
Checks if this renderer can render an attribute.
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Sets a parameter for the internal servlet.
|
void |
write(java.lang.Object value,
Attribute attribute,
TilesRequestContext request)
Implement this method knowing that the attribute won't be null and it
will be authorized.
|
isRenderablegetRequestContext, isPermitted, render, setApplicationContext, setAttributeEvaluatorFactory, setRequestContextFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderpublic void setParameter(java.lang.String key,
java.lang.String value)
key - The name of the parameter.value - The value of the parameter.public void commit()
public void write(java.lang.Object value,
Attribute attribute,
TilesRequestContext request)
throws java.io.IOException
write in class AbstractBaseAttributeRenderervalue - The value of the attribute to be rendered.attribute - The attribute to render.request - The Tiles request object.java.io.IOException - If something goes wrong during rendition.public boolean isRenderable(java.lang.Object value,
Attribute attribute,
TilesRequestContext request)
value - The attribute value, already evaluated.attribute - The attribute to be renderer.request - The Tiles request context.true if this renderer can render the attribute.