org.apache.tiles.taglib
Class InsertAttributeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.tiles.taglib.ContainerTagSupport
org.apache.tiles.taglib.RenderTagSupport
org.apache.tiles.taglib.InsertAttributeTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally, PutAttributeTagParent
- Direct Known Subclasses:
- GetAsStringTag
public class InsertAttributeTag
- extends RenderTagSupport
This is the tag handler for <tiles:attribute>, which defines an
attribute. If the attribute value is a template or a definition, its
attributes and its template can be overridden.
- See Also:
- Serialized Form
Field Summary |
protected org.apache.tiles.ComponentContext |
evaluatingContext
|
protected java.lang.String |
name
Name to insert. |
protected java.lang.Object |
value
|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 |
Method Summary |
java.lang.String |
getName()
|
java.lang.Object |
getValue()
Get the value. |
void |
release()
|
protected void |
render()
Render the specified content. |
protected void |
render(org.apache.tiles.ComponentAttribute attr)
Renders an attribute for real. |
void |
setName(java.lang.String value)
|
void |
setValue(java.lang.Object value)
Set the value. |
protected void |
startContext(javax.servlet.jsp.PageContext context)
|
Methods inherited from class org.apache.tiles.taglib.RenderTagSupport |
doCatch, doFinally, doStartTag, execute, getPreparer, isFlush, isIgnore, processNestedTag, setFlush, setIgnore, setPreparer |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
name
protected java.lang.String name
- Name to insert.
value
protected java.lang.Object value
evaluatingContext
protected org.apache.tiles.ComponentContext evaluatingContext
InsertAttributeTag
public InsertAttributeTag()
setName
public void setName(java.lang.String value)
getName
public java.lang.String getName()
getValue
public java.lang.Object getValue()
- Get the value.
- Returns:
- The value.
setValue
public void setValue(java.lang.Object value)
- Set the value.
- Parameters:
value
- The new value
release
public void release()
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class RenderTagSupport
render
protected void render()
throws javax.servlet.jsp.JspException,
org.apache.tiles.TilesException,
java.io.IOException
- Description copied from class:
RenderTagSupport
- Render the specified content.
- Specified by:
render
in class RenderTagSupport
- Throws:
javax.servlet.jsp.JspException
- if a jsp exception occurs.
org.apache.tiles.TilesException
- if a prepare or render exception occurs.
java.io.IOException
- if an io exception occurs.
startContext
protected void startContext(javax.servlet.jsp.PageContext context)
- Overrides:
startContext
in class ContainerTagSupport
render
protected void render(org.apache.tiles.ComponentAttribute attr)
throws org.apache.tiles.TilesException,
java.io.IOException
- Renders an attribute for real.
- Parameters:
attr
- The attribute to render.
- Throws:
org.apache.tiles.TilesException
- If something goes wrong during rendering.
java.io.IOException
- If something goes wrong during the reading of
definition files.