|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.template.AddAttributeModel
public class AddAttributeModel
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 | |
---|---|
AddAttributeModel()
|
Method Summary | |
---|---|
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.. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddAttributeModel()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |