Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tiles.template
Class AddAttributeModel

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

    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")

Since:
  2.2.0
Version:
  $Rev: 797765 $ $Date: 2009-07-25 15:20:26 +0200 (sab, 25 lug 2009) $

Constructor Summary
`AddAttributeModel()`

Method Summary
`void` | `end(ArrayStack<java.lang.Object> composeStack, java.lang.Object value, java.lang.String expression, java.lang.String body, java.lang.String role, java.lang.String type)` Ends the operation.
`void` | `execute(ArrayStack<java.lang.Object> composeStack, java.lang.Object value, java.lang.String expression, java.lang.String body, java.lang.String role, java.lang.String type)` Executes the operation.
`void` | `start(ArrayStack<java.lang.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

### AddAttributeModel

    public AddAttributeModel()

Method Detail

### start

    public void start(ArrayStack<java.lang.Object> composeStack)

  Starts the operation..

  Parameters:
    `composeStack` - The composing stack.
  Since:
    2.2.0

### end

    public void end(ArrayStack<java.lang.Object> composeStack,
                    java.lang.Object value,
                    java.lang.String expression,
                    java.lang.String body,
                    java.lang.String role,
                    java.lang.String type)

  Ends the operation.

  Parameters:
    `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.
  Since:
    2.2.0

### execute

    public void execute(ArrayStack<java.lang.Object> composeStack,
                        java.lang.Object value,
                        java.lang.String expression,
                        java.lang.String body,
                        java.lang.String role,
                        java.lang.String type)

  Executes the operation.

  Parameters:
    `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.
  Since:
    2.2.0

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.