Package org.apache.tiles.jsp.taglib
Class PutListAttributeTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.SimpleTagSupport
-
- org.apache.tiles.jsp.taglib.PutListAttributeTag
-
- All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.SimpleTag
public class PutListAttributeTag extends javax.servlet.jsp.tagext.SimpleTagSupportDeclare 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 Summary
Constructors Constructor Description PutListAttributeTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoTag()java.lang.StringgetName()Getter for name property.java.lang.StringgetRole()Getter for role property.booleanisCascade()Getter for cascade property.booleanisInherit()Getter for inherit property.voidsetCascade(boolean cascade)Setter for cascade property.voidsetInherit(boolean inherit)Setter for inherit property.voidsetName(java.lang.String name)Setter for name property.voidsetRole(java.lang.String role)Setter for role property.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Getter for name property.- Returns:
- The name of the attribute to put.
-
setName
public void setName(java.lang.String name)
Setter for name property.- Parameters:
name- The name of the attribute to put.
-
getRole
public java.lang.String getRole()
Getter 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.
-
setRole
public void setRole(java.lang.String role)
Setter 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.
-
isInherit
public 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.
-
setInherit
public void setInherit(boolean inherit)
Setter for inherit property.- Parameters:
inherit- Iftrue, the list attribute will use, as first elements, the list contained in the list attribute, put with the same name, of the containing definition.
-
isCascade
public boolean isCascade()
Getter for cascade property.- Returns:
- If
truethe attribute will be cascaded to all nested attributes.
-
setCascade
public void setCascade(boolean cascade)
Setter for cascade property.- Parameters:
cascade- Iftruethe attribute will be cascaded to all nested attributes.
-
doTag
public void doTag() throws javax.servlet.jsp.JspException, java.io.IOException- Specified by:
doTagin interfacejavax.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjavax.servlet.jsp.tagext.SimpleTagSupport- Throws:
javax.servlet.jsp.JspExceptionjava.io.IOException
-
-