public class PutAttributeModel extends Object
Put an attribute in enclosing attribute container tag.
Enclosing attribute container tag can be :
PutAttributeTagParent
interface. Exception is thrown if no appropriate tag can be found.
Put tag can have following atributes :
Value can also come from tag body. Tag body is taken into account only if value is not set by one of the tag attributes. In this case Attribute type is "string", unless tag body define another type.
Constructor and Description |
---|
PutAttributeModel() |
public void execute(String name, Object value, String expression, String role, String type, boolean cascade, org.apache.tiles.request.Request request, org.apache.tiles.autotag.core.runtime.ModelBody modelBody) throws IOException
name
- The name of the attribute to put.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.cascade
- If true
the attribute will be cascaded to all nested attributes.request
- The request.modelBody
- The body.IOException
- If the body cannot be evaluated.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.