org.apache.tiles.jsp.taglib
Class PutListAttributeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.tiles.jsp.taglib.TilesBodyTag
org.apache.tiles.jsp.taglib.AddAttributeTag
org.apache.tiles.jsp.taglib.PutAttributeTag
org.apache.tiles.jsp.taglib.PutListAttributeTag
- 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, AddAttributeTagParent, DefinitionTagParent
public class PutListAttributeTag
- extends PutAttributeTag
- implements AddAttributeTagParent
PutList tag implementation.
- Since:
- Tiles 1.0
- See Also:
- Serialized Form
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 |
int |
doAfterBody()
PutListAttributeTag may not have any body, except for PutAttribute tags. |
int |
doStartTag()
|
protected void |
execute()
Executes the processing of this tag, calling its parent tag. |
java.util.List<Attribute> |
getAttributes()
Get list defined in tag. |
boolean |
getInherit()
If true, the attribute will put the elements of the attribute with the
same name of the parent definition before the ones specified here. |
void |
processNestedTag(AddAttributeTag nestedTag)
Process nested ≶putAttribute> tag. |
protected void |
reset()
Release any per-invocation resources, resetting any resources or state
that should be cleared between successive invocations of
Tag.doEndTag() and
Tag.doStartTag() . |
void |
setInherit(boolean inherit)
If true, the attribute will put the elements of the attribute with the
same name of the parent definition before the ones specified here. |
void |
setValue(java.lang.Object object)
Sets the attribute value. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
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 |
PutListAttributeTag
public PutListAttributeTag()
setInherit
public void setInherit(boolean inherit)
- If true, the attribute will put the elements of the attribute with the
same name of the parent definition before the ones specified here. By
default, it is 'false'
- Parameters:
inherit
- The "inherit" value.- Since:
- 2.1.0
getInherit
public boolean getInherit()
- If true, the attribute will put the elements of the attribute with the
same name of the parent definition before the ones specified here. By
default, it is 'false'
- Returns:
- The "inherit" value.
- Since:
- 2.1.0
getAttributes
public java.util.List<Attribute> getAttributes()
- Get list defined in tag.
- Returns:
- The value of this list attribute.
setValue
public void setValue(java.lang.Object object)
- Sets the attribute value.
- Overrides:
setValue
in class AddAttributeTag
- Parameters:
object
- Attribute value. Can be a String or Object.
doStartTag
public int doStartTag()
-
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody
public int doAfterBody()
- PutListAttributeTag may not have any body, except for PutAttribute tags.
- Specified by:
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
- Overrides:
doAfterBody
in class AddAttributeTag
- Returns:
SKIP_BODY
.
reset
protected void reset()
- Release any per-invocation resources, resetting any resources or state
that should be cleared between successive invocations of
Tag.doEndTag()
and
Tag.doStartTag()
.
- Overrides:
reset
in class PutAttributeTag
processNestedTag
public void processNestedTag(AddAttributeTag nestedTag)
- Process nested ≶putAttribute> tag.
Places the value of the nested tag within the
AttributeContext
.It is the responsibility
of the descendent to check security. Security will be managed by called
tags.
- Specified by:
processNestedTag
in interface AddAttributeTagParent
- Parameters:
nestedTag
- the put tag desciendent.
execute
protected void execute()
throws TilesJspException
- Executes the processing of this tag, calling its parent tag.
- Overrides:
execute
in class PutAttributeTag
- Throws:
TilesJspException
- If something goes wrong during execution.