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.RoleSecurityTagSupport
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, AddAttributeTagParent
public class PutListAttributeTag
- extends PutAttributeTag
- implements AddAttributeTagParent
PutList tag implementation.
- Since:
- Tiles 1.0
- Version:
- $Rev: 536155 $ $Date: 2007-05-08 12:31:05 +0200 (Tue, 08 May 2007) $
- 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()
|
java.util.List<Attribute> |
getValue()
Get list defined in tag. |
void |
processNestedTag(AddAttributeTag nestedTag)
Process nested ≶putAttribute> tag. |
void |
release()
Release the state of this put list by
clearing the contents of the list. |
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()
getValue
public java.util.List<Attribute> getValue()
- Get list defined in tag.
- Overrides:
getValue
in class PutAttributeTag
- Returns:
- The value of this list attribute.
setValue
public void setValue(java.lang.Object object)
- Sets the Attribute value. Could be a String or an Object. Value can
come from a direct assignment (value="aValue") or from a bean. One of
'value' 'content' or 'beanName' must be present.
- Overrides:
setValue
in class PutAttributeTag
- Parameters:
object
- The attribute value.
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
-
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspException
- PutListAttributeTag may not have any body, except for PutAttribute tags.
- Specified by:
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
- Overrides:
doAfterBody
in class PutAttributeTag
- Returns:
SKIP_BODY
.
- Throws:
javax.servlet.jsp.JspException
- if a JSP exception has occurred
release
public void release()
- Release the state of this put list by
clearing the contents of the list.
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
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. Tags extending
the ContainerTagSupport
will automatically provide
the appropriate security.
- Specified by:
processNestedTag
in interface AddAttributeTagParent
- Parameters:
nestedTag
- the put tag desciendent.