Package org.apache.tiles.web.jsp.taglib
Class PutListAttributeTag
java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
org.apache.tiles.web.jsp.taglib.PutListAttributeTag
- All Implemented Interfaces:
- jakarta.servlet.jsp.tagext.JspTag,- jakarta.servlet.jsp.tagext.SimpleTag
public class PutListAttributeTag
extends jakarta.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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoTag()getName()Getter for name property.getRole()Getter for role property.booleanGetter for cascade property.booleanGetter for inherit property.voidsetCascade(boolean cascade) Setter for cascade property.voidsetInherit(boolean inherit) Setter for inherit property.voidSetter for name property.voidSetter for role property.Methods inherited from class jakarta.servlet.jsp.tagext.SimpleTagSupportfindAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
- 
Constructor Details- 
PutListAttributeTagpublic PutListAttributeTag()
 
- 
- 
Method Details- 
getNameGetter for name property.- Returns:
- The name of the attribute to put.
 
- 
setNameSetter for name property.- Parameters:
- name- The name of the attribute to put.
 
- 
getRoleGetter for role property.- Returns:
- A comma-separated list of roles. If present, the attribute will be rendered only if the current user belongs to one of the roles.
 
- 
setRoleSetter for role property.- Parameters:
- 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.
 
- 
isInheritpublic boolean isInherit()Getter for inherit property.- Returns:
- 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.
 
- 
setInheritpublic void setInherit(boolean inherit) Setter for inherit property.- Parameters:
- 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.
 
- 
isCascadepublic boolean isCascade()Getter for cascade property.- Returns:
- If true the attribute will be cascaded to all nested attributes.
 
- 
setCascadepublic void setCascade(boolean cascade) Setter for cascade property.- Parameters:
- cascade- If true the attribute will be cascaded to all nested attributes.
 
- 
doTag- Specified by:
- doTagin interface- jakarta.servlet.jsp.tagext.SimpleTag
- Overrides:
- doTagin class- jakarta.servlet.jsp.tagext.SimpleTagSupport
- Throws:
- jakarta.servlet.jsp.JspException
- IOException
 
 
-