Package org.apache.tiles.template
Class PutListAttributeModel
- java.lang.Object
-
- org.apache.tiles.template.PutListAttributeModel
-
public class PutListAttributeModel extends java.lang.Object
Declare a list that will be pass as attribute to tile.
Declare a list that will be pass as attribute to tile. List elements are added using the tags 'addAttribute' or 'addListAttribute'. This tag can only be used inside 'insertTemplate', 'insertDefinition', 'definition' tags.
- Since:
- 2.2.0
- Version:
- $Rev: 1305937 $ $Date: 2012-03-28 05:15:15 +1100 (Wed, 28 Mar 2012) $
-
-
Constructor Summary
Constructors Constructor Description PutListAttributeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(java.lang.String name, java.lang.String role, boolean inherit, boolean cascade, org.apache.tiles.request.Request request, org.apache.tiles.autotag.core.runtime.ModelBody modelBody)
Executes the model.
-
-
-
Method Detail
-
execute
public void execute(java.lang.String name, java.lang.String role, boolean inherit, boolean cascade, org.apache.tiles.request.Request request, org.apache.tiles.autotag.core.runtime.ModelBody modelBody) throws java.io.IOException
Executes the model.- Parameters:
name
- The name of the attribute to put.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.inherit
- Iftrue
, the list attribute will use, as first elements, the list contained in the list attribute, put with the same name, of the containing definition.cascade
- Iftrue
the attribute will be cascaded to all nested attributes.request
- The request.modelBody
- The body.- Throws:
java.io.IOException
- If the body cannot be evaluated.
-
-