|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.tiles.jsp.taglib.RenderTagSupport
org.apache.tiles.jsp.taglib.InsertAttributeTag
public class InsertAttributeTag
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.
Field Summary | |
---|---|
protected Attribute |
attribute
The evaluated attribute. |
protected java.lang.String |
name
Name to insert. |
protected java.lang.Object |
value
The value of the attribute. |
Fields inherited from class org.apache.tiles.jsp.taglib.RenderTagSupport |
---|
attributeContext, container, flush, ignore, preparer, role |
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 |
Constructor Summary | |
---|---|
InsertAttributeTag()
|
Method Summary | |
---|---|
int |
doStartTag()
|
java.lang.String |
getName()
Returns the name of the attribute. |
java.lang.Object |
getValue()
Get the value. |
void |
release()
|
protected void |
render()
Render the specified content. |
protected void |
render(Attribute attr)
Renders an attribute for real. |
void |
setName(java.lang.String value)
Sets the name of the attribute. |
void |
setValue(java.lang.Object value)
Set the value. |
protected void |
startContext(javax.servlet.jsp.PageContext context)
Starts the context when entering the tag. |
Methods inherited from class org.apache.tiles.jsp.taglib.RenderTagSupport |
---|
doEndTag, endContext, execute, getPreparer, getRole, isAccessAllowed, isFlush, isIgnore, processNestedTag, processNestedTag, setFlush, setIgnore, setPreparer, setRole |
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 |
Field Detail |
---|
protected java.lang.String name
protected java.lang.Object value
protected Attribute attribute
Constructor Detail |
---|
public InsertAttributeTag()
Method Detail |
---|
public void setName(java.lang.String value)
value
- The name of the attribute.public java.lang.String getName()
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- The new valuepublic int doStartTag() throws TilesJspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class RenderTagSupport
TilesJspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class RenderTagSupport
protected void render() throws TilesJspException, java.io.IOException
render
in class RenderTagSupport
TilesJspException
- if a jsp exception occurs.
java.io.IOException
- if an io exception occurs.protected void startContext(javax.servlet.jsp.PageContext context)
startContext
in class RenderTagSupport
context
- The page context to use.protected void render(Attribute attr) throws java.io.IOException
attr
- The attribute to render.
java.io.IOException
- If something goes wrong during the reading of
definition files.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |