Package org.apache.tiles.template

# Class AddListAttributeModel

java.lang.Object
org.apache.tiles.template.AddListAttributeModel

public class AddListAttributeModel extends Object

Declare a list that will be pass as an attribute.

Declare a list that will be pass as an attribute . List elements are added using the tag 'addAttribute' or 'addListAttribute'. This tag can only be used inside 'insertTemplate', 'insertDefinition' or 'definition' tag.

Since:
  2.2.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AddListAttributeModel()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `execute(String role, Request request, ModelBody modelBody)`
  Executes the model.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AddListAttributeModel

    public AddListAttributeModel()

- ## Method Details

  - ### execute

    public void execute(String role, Request request, ModelBody modelBody) throws IOException
    Executes the model.
    Parameters:
      `role` - The comma-separated list of roles that can use the list attribute.
      `request` - The request.
      `modelBody` - The body.
    Throws:
      `IOException` - If the body cannot be evaluated.