Package org.apache.tiles.jsp.taglib
Class AddAttributeTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.apache.tiles.jsp.taglib.AddAttributeTag
- All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.SimpleTag
public class AddAttributeTag
extends javax.servlet.jsp.tagext.SimpleTagSupport
Add an element to the surrounding list. Equivalent to 'putAttribute', but for list element.
Add an element to the surrounding list. This tag can only be used inside 'putListAttribute' or 'addListAttribute' tags. Value can come from a direct assignment (value="aValue")
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doTag()
Getter for expression property.getRole()
Getter for role property.getType()
Getter for type property.getValue()
Getter for value property.void
setExpression
(String expression) Setter for expression property.void
Setter for role property.void
Setter for type property.void
Setter for value property.Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Constructor Details
-
AddAttributeTag
public AddAttributeTag()
-
-
Method Details
-
getValue
Getter for value property.- Returns:
- The value of the attribute. Use this parameter, or expression, or body.
-
setValue
Setter for value property.- Parameters:
value
- The value of the attribute. Use this parameter, or expression, or body.
-
getExpression
Getter for expression property.- Returns:
- The expression to calculate the value from. Use this parameter, or value, or body.
-
setExpression
Setter for expression property.- Parameters:
expression
- The expression to calculate the value from. Use this parameter, or value, or body.
-
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
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.
-
getType
Getter for type property.- Returns:
- The type (renderer) of the attribute.
-
setType
Setter for type property.- Parameters:
type
- The type (renderer) of the attribute.
-
doTag
- Specified by:
doTag
in interfacejavax.servlet.jsp.tagext.SimpleTag
- Overrides:
doTag
in classjavax.servlet.jsp.tagext.SimpleTagSupport
- Throws:
javax.servlet.jsp.JspException
IOException
-