org.apache.struts.taglib.tiles

Class PutListTag

Implemented Interfaces:
AddTagParent, ComponentConstants, PutListTagParent

public class PutListTag
extends TagSupport
implements ComponentConstants, AddTagParent, PutListTagParent

PutList tag implementation.

Field Summary

private String
attributeName
Name of this attribute.
private List
list
The list itself.
private String
role
Role attribute.

Fields inherited from interface org.apache.struts.taglib.tiles.ComponentConstants

COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY

Constructor Summary

PutListTag()
Default constructor.

Method Summary

void
addElement(Object value)
Set property.
int
doEndTag()
Do end tag.
int
doStartTag()
Do start tag.
protected PutListTagParent
findEnclosingParent()
Find enclosing parent tag accepting this tag.
List
getList()
Get list defined in tag.
String
getName()
Get property.
String
getRole()
Get role attribute.
void
processNestedTag(AddTag nestedTag)
Process nested ≶add> tag.
void
processNestedTag(PutListTag nestedTag)
Process nested ≶putList> tag.
void
release()
Release all allocated resources.
protected void
releaseInternal()
Release all internal resources.
void
setName(String name)
Set property.
void
setRole(String role)
Set role attribute.

Field Details

attributeName

private String attributeName
Name of this attribute.

list

private List list
The list itself.

role

private String role
Role attribute.

Constructor Details

PutListTag

public PutListTag()
Default constructor.

Method Details

addElement

public void addElement(Object value)
Set property.

doEndTag

public int doEndTag()
            throws JspException
Do end tag.

doStartTag

public int doStartTag()
            throws JspException
Do start tag.

findEnclosingParent

protected PutListTagParent findEnclosingParent()
            throws JspException
Find enclosing parent tag accepting this 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(AddTag nestedTag)
            throws JspException
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.
Specified by:
processNestedTag in interface AddTagParent

processNestedTag

public void processNestedTag(PutListTag nestedTag)
            throws JspException
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.
Specified by:
processNestedTag in interface PutListTagParent

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-2007 - The Apache Software Foundation