public class PutListAttributeTag
extends javax.servlet.jsp.tagext.SimpleTagSupport
Declare a list that will be pass as attribute to tile.
Declare a list that will be pass as attribute to tile. List elements are added using the tags 'addAttribute' or 'addListAttribute'. This tag can only be used inside 'insertTemplate', 'insertDefinition', 'definition' tags.
Constructor and Description |
---|
PutListAttributeTag() |
Modifier and Type | Method and Description |
---|---|
void |
doTag() |
String |
getName()
Getter for name property.
|
String |
getRole()
Getter for role property.
|
boolean |
isCascade()
Getter for cascade property.
|
boolean |
isInherit()
Getter for inherit property.
|
void |
setCascade(boolean cascade)
Setter for cascade property.
|
void |
setInherit(boolean inherit)
Setter for inherit property.
|
void |
setName(String name)
Setter for name property.
|
void |
setRole(String role)
Setter for role property.
|
public String getName()
public void setName(String name)
name
- The name of the attribute to put.public String getRole()
public void setRole(String role)
role
- A comma-separated list of roles. If present, the attribute
will be rendered only if the current user belongs to one of the roles.public boolean isInherit()
true
, the list attribute will use, as first elements, the
list contained in the list attribute, put with the same name, of the containing definition.public void setInherit(boolean inherit)
inherit
- If true
, the list attribute will use, as first elements, the
list contained in the list attribute, put with the same name, of the containing definition.public boolean isCascade()
true
the attribute will be cascaded to all nested attributes.public void setCascade(boolean cascade)
cascade
- If true
the attribute will be cascaded to all nested attributes.public void doTag() throws javax.servlet.jsp.JspException, IOException
doTag
in interface javax.servlet.jsp.tagext.SimpleTag
doTag
in class javax.servlet.jsp.tagext.SimpleTagSupport
javax.servlet.jsp.JspException
IOException
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.