org.apache.tiles.taglib
Class AddListAttributeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.tiles.taglib.ContainerTagSupport
org.apache.tiles.taglib.AddAttributeTag
org.apache.tiles.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, ComponentConstants
public class AddListAttributeTag
- extends AddAttributeTag
- implements AddAttributeTagParent
AddListAttribute 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()
By default, all ContainerTags evaluate their body. |
protected void |
endContext(javax.servlet.jsp.PageContext context)
|
java.util.List<org.apache.tiles.ComponentAttribute> |
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)
|
protected void |
startContext(javax.servlet.jsp.PageContext context)
|
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<org.apache.tiles.ComponentAttribute> getValue()
- Get list defined in tag.
- Overrides:
getValue
in class AddAttributeTag
setValue
public void setValue(java.lang.Object object)
- Overrides:
setValue
in class AddAttributeTag
doStartTag
public int doStartTag()
- Description copied from class:
ContainerTagSupport
- By default, all ContainerTags evaluate their body. Subclasses may choose to be more selective.
In any case, children can rely upon the container and componentContext being initialized if they
call
super.doStartTag()
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class ContainerTagSupport
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
- 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
ComponentContext
.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.
startContext
protected void startContext(javax.servlet.jsp.PageContext context)
- Overrides:
startContext
in class AddAttributeTag
endContext
protected void endContext(javax.servlet.jsp.PageContext context)
- Overrides:
endContext
in class AddAttributeTag