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 and Description |
---|
AddAttributeTag() |
Modifier and Type | Method and Description |
---|---|
void |
doTag() |
String |
getExpression()
Getter for expression property.
|
String |
getRole()
Getter for role property.
|
String |
getType()
Getter for type property.
|
Object |
getValue()
Getter for value property.
|
void |
setExpression(String expression)
Setter for expression property.
|
void |
setRole(String role)
Setter for role property.
|
void |
setType(String type)
Setter for type property.
|
void |
setValue(Object value)
Setter for value property.
|
public Object getValue()
public void setValue(Object value)
value
- The value of the attribute. Use this parameter, or
expression, or body.public String getExpression()
public void setExpression(String expression)
expression
- The expression to calculate the value from. Use this
parameter, or value, or body.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 String getType()
public void setType(String type)
type
- The type (renderer) of the attribute.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.