|
|||||||||
| Home >> All >> org >> roller >> presentation >> [ tags overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.roller.presentation.tags
Class VelocityTag

java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.roller.presentation.tags.HybridTag
org.roller.presentation.tags.VelocityTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public abstract class VelocityTag
- extends HybridTag
- Version:
- 1.0
| Field Summary | |
private java.util.List |
images
|
private java.util.Map |
ingredients
|
private static org.apache.commons.logging.Log |
mLogger
|
private java.lang.String |
subtitle
|
private java.lang.String |
title
|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
VelocityTag()
|
|
| Method Summary | |
int |
doEndTag(java.io.PrintWriter pw)
Check all all the public properties that must be set by now, either by tag arguments or tag children. |
java.lang.String |
doStandaloneTest(java.util.Map inMap)
|
int |
doStartTag(java.io.PrintWriter pw)
Evaluate any tags inside us. |
abstract java.lang.String |
getTemplateClasspath()
Return path to Velocity template to render this tag |
protected static java.lang.String |
getVelocityClasspathResource(java.lang.String inClasspathString)
Velocity wants classpath resources to not have a leading slash. |
private static org.apache.velocity.VelocityContext |
getVelocityContext()
|
abstract void |
prepareContext(org.apache.velocity.VelocityContext ctx)
Prepare context for execution |
void |
release()
Release any resources we might have acquired. |
| Methods inherited from class org.roller.presentation.tags.HybridTag |
doEndTag, doStartTag, emit, toString |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
mLogger
private static org.apache.commons.logging.Log mLogger
title
private java.lang.String title
subtitle
private java.lang.String subtitle
images
private java.util.List images
ingredients
private java.util.Map ingredients
| Constructor Detail |
VelocityTag
public VelocityTag()
| Method Detail |
getTemplateClasspath
public abstract java.lang.String getTemplateClasspath()
- Return path to Velocity template to render this tag
prepareContext
public abstract void prepareContext(org.apache.velocity.VelocityContext ctx)
- Prepare context for execution
release
public void release()
- Release any resources we might have acquired.
doStartTag
public int doStartTag(java.io.PrintWriter pw) throws javax.servlet.jsp.JspException
- Evaluate any tags inside us. This will also allow us to have child tags
send us messages.
- Overrides:
doStartTagin classHybridTag
doEndTag
public int doEndTag(java.io.PrintWriter pw) throws javax.servlet.jsp.JspException
- Check all all the public properties that must be set by now, either by
tag arguments or tag children.
doStandaloneTest
public java.lang.String doStandaloneTest(java.util.Map inMap) throws java.lang.Exception
getVelocityContext
private static org.apache.velocity.VelocityContext getVelocityContext() throws java.lang.Exception
getVelocityClasspathResource
protected static java.lang.String getVelocityClasspathResource(java.lang.String inClasspathString)
- Velocity wants classpath resources to not have a leading slash. This is
contrary to how one would normally load a resource off the classpath
(e.g. SampleTag.class.getResourceAsStream("/extag/resources/test.html")
|
|||||||||
| Home >> All >> org >> roller >> presentation >> [ tags overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC