public class AddAttributeModel extends Object
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 |
---|
AddAttributeModel() |
Modifier and Type | Method and Description |
---|---|
void |
end(ArrayStack<Object> composeStack,
Object value,
String expression,
String body,
String role,
String type)
Ends the operation.
|
void |
execute(ArrayStack<Object> composeStack,
Object value,
String expression,
String body,
String role,
String type)
Executes the operation.
|
void |
start(ArrayStack<Object> composeStack)
Starts the operation..
|
public void start(ArrayStack<Object> composeStack)
composeStack
- The composing stack.public void end(ArrayStack<Object> composeStack, Object value, String expression, String body, String role, String type)
composeStack
- The composing stack.value
- The value of the attribute. Use this parameter, or
expression, or body.expression
- The expression to calculate the value from. Use this
parameter, or value, or body.body
- The body of the tag. Use this parameter, or value, or
expression.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.type
- The type (renderer) of the attribute.public void execute(ArrayStack<Object> composeStack, Object value, String expression, String body, String role, String type)
composeStack
- The composing stack.value
- The value of the attribute. Use this parameter, or
expression, or body.expression
- The expression to calculate the value from. Use this
parameter, or value, or body.body
- The body of the tag. Use this parameter, or value, or
expression.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.type
- The type (renderer) of the attribute.Copyright © 2017. All rights reserved.