public class AddAttributeModel
extends java.lang.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 | Description |
---|---|
AddAttributeModel() |
Modifier and Type | Method | Description |
---|---|---|
void |
execute(java.lang.Object value,
java.lang.String expression,
java.lang.String role,
java.lang.String type,
org.apache.tiles.request.Request request,
org.apache.tiles.autotag.core.runtime.ModelBody modelBody) |
Executes the operation.
|
public void execute(java.lang.Object value, java.lang.String expression, java.lang.String role, java.lang.String type, org.apache.tiles.request.Request request, org.apache.tiles.autotag.core.runtime.ModelBody modelBody) throws java.io.IOException
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.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.request
- The request.modelBody
- The body.java.io.IOException
- If the body cannot be correctly evaluated.Copyright © 2018. All rights reserved.