org.apache.tiles.jsp.taglib
Class AddListAttributeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport
org.apache.tiles.jsp.taglib.AddAttributeTag
org.apache.tiles.jsp.taglib.AddListAttributeTag
- 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 AddListAttributeTag
- extends AddAttributeTag
- implements AddAttributeTagParent
AddListAttribute 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 ≶addAttribute> 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 |
AddListAttributeTag
public AddListAttributeTag()
getValue
public java.util.List<Attribute> getValue()
- Get list defined in tag.
- Overrides:
getValue
in class AddAttributeTag
- Returns:
- The list of attributes.
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()
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 AddAttributeTag
- 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 AddAttributeTag
processNestedTag
public void processNestedTag(AddAttributeTag nestedTag)
- Process nested ≶addAttribute> 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.