org.apache.struts.taglib.tiles

Class PutListTag

public class PutListTag extends TagSupport implements ComponentConstants, AddTagParent, PutListTagParent

PutList tag implementation.
Field Summary
StringattributeName
Name of this attribute.
Listlist
The list itself.
Stringrole
Role attribute.
Constructor Summary
PutListTag()
Default constructor.
Method Summary
voidaddElement(Object value)
Set property.
intdoEndTag()
Do end tag.
intdoStartTag()
Do start tag.
protected PutListTagParentfindEnclosingParent()
Find enclosing parent tag accepting this tag.
ListgetList()
Get list defined in tag.
StringgetName()
Get property.
StringgetRole()
Get role attribute.
voidprocessNestedTag(PutListTag nestedTag)
Process nested ≶putList> tag.
voidprocessNestedTag(AddTag nestedTag)
Process nested ≶add> tag.
voidrelease()
Release all allocated resources.
protected voidreleaseInternal()
Release all internal resources.
voidsetName(String name)
Set property.
voidsetRole(String role)
Set role attribute.

Field Detail

attributeName

private String attributeName
Name of this attribute.

list

private List list
The list itself.

role

private String role
Role attribute.

Constructor Detail

PutListTag

public PutListTag()
Default constructor.

Method Detail

addElement

public void addElement(Object value)
Set property.

doEndTag

public int doEndTag()
Do end tag.

doStartTag

public int doStartTag()
Do start tag.

findEnclosingParent

protected PutListTagParent findEnclosingParent()
Find enclosing parent tag accepting this tag.

Throws: JspException If we can't find an appropriate enclosing tag.

getList

public List getList()
Get list defined in tag.

getName

public String getName()
Get property.

getRole

public String getRole()
Get role attribute.

processNestedTag

public void processNestedTag(PutListTag nestedTag)
Process nested ≶putList> tag. Method calls by nested ≶putList> tags. Nested list is added to current list. If role is defined, nested attribute is wrapped into an untypped definition containing attribute value and role.

processNestedTag

public void processNestedTag(AddTag nestedTag)
Process nested ≶add> tag. Method calls by nested ≶add> tags. Nested attribute is added to current list. If role is defined, nested attribute is wrapped into an untypped definition containing attribute value and role.

release

public void release()
Release all allocated resources.

releaseInternal

protected void releaseInternal()
Release all internal resources.

setName

public void setName(String name)
Set property.

setRole

public void setRole(String role)
Set role attribute.

Parameters: role The role the user must be in to store content.

Copyright B) 2000-2008 - The Apache Software Foundation