|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.request.velocity.render.VelocityRenderer
public class VelocityRenderer
Attribute renderer for rendering Velocity templates as attributes.
It is available only to Servlet-based environment.
It uses VelocityView
to render the response.
To initialize it correctly, call #setParameter(String, String)
for
all the parameters that you want to set, and then call #commit()
.
Constructor Summary | |
---|---|
VelocityRenderer(VelocityView velocityView)
Constructor. |
Method Summary | |
---|---|
boolean |
isRenderable(String path,
Request request)
Checks if this renderer can render a path. |
void |
render(String path,
Request request)
Renders a path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VelocityRenderer(VelocityView velocityView)
velocityView
- The Velocity view manager.Method Detail |
---|
public void render(String path, Request request) throws IOException
render
in interface Renderer
path
- The path to render.request
- The Tiles request context.
IOException
- If something goes wrong during rendition.public boolean isRenderable(String path, Request request)
isRenderable
in interface Renderer
path
- The path to be rendered.request
- The request context.
true
if this renderer can render the attribute.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |