This project has retired. For details please refer to its Attic page.
PutListAttributeTag (Tiles 2 2.0.7 API)

org.apache.tiles.jsp.taglib
Class PutListAttributeTag

Package class diagram package PutListAttributeTag
java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.tiles.jsp.taglib.TilesBodyTag
              extended by org.apache.tiles.jsp.taglib.RoleSecurityTagSupport
                  extended by org.apache.tiles.jsp.taglib.PutAttributeTag
                      extended by org.apache.tiles.jsp.taglib.PutListAttributeTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, AddAttributeTagParent

public class PutListAttributeTag
extends PutAttributeTag
implements AddAttributeTagParent

PutList tag implementation.

Since:
Tiles 1.0
Version:
$Rev: 727715 $ $Date: 2008-12-18 14:06:06 +0100 (Thu, 18 Dec 2008) $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.tiles.jsp.taglib.PutAttributeTag
name
 
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
PutListAttributeTag()
           
 
Method Summary
 int doAfterBody()
          PutListAttributeTag may not have any body, except for PutAttribute tags.
 int doStartTag()
          
 List<Attribute> getAttributes()
          Get list defined in tag.
 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 setValue(Object object)
          Sets the Attribute value.
 
Methods inherited from class org.apache.tiles.jsp.taglib.PutAttributeTag
execute, getName, getType, getValue, setName, setType
 
Methods inherited from class org.apache.tiles.jsp.taglib.RoleSecurityTagSupport
doEndTag, getRole, isAccessAllowed, setRole
 
Methods inherited from class org.apache.tiles.jsp.taglib.TilesBodyTag
doCatch, doFinally, release
 
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
 

Constructor Detail

PutListAttributeTag

public PutListAttributeTag()
Method Detail

getAttributes

public List<Attribute> getAttributes()
Get list defined in tag.

Returns:
The value of this list attribute.

setValue

public void setValue(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 JspException

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BodyTagSupport
Throws:
JspException

doAfterBody

public int doAfterBody()
                throws JspException
PutListAttributeTag may not have any body, except for PutAttribute tags.

Specified by:
doAfterBody in interface IterationTag
Overrides:
doAfterBody in class PutAttributeTag
Returns:
SKIP_BODY.
Throws:
JspException - if a JSP exception has occurred

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. Tags extending the ContainerTagSupport will automatically provide the appropriate security.

Specified by:
processNestedTag in interface AddAttributeTagParent
Parameters:
nestedTag - the put tag desciendent.


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.