This project has retired. For details please refer to its Attic page.
AddAttributeModel (Tiles 2 2.2.2 API)

org.apache.tiles.template
Class AddAttributeModel

Package class diagram package AddAttributeModel
java.lang.Object
  extended by org.apache.tiles.template.AddAttributeModel

public class AddAttributeModel
extends 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<Object> composeStack, Object value, String expression, String body, String role, String type)
          Ends the operation.
 void execute(ArrayStack<Object> composeStack, Object value, String expression, String body, String role, String type)
          Executes the operation.
 void start(ArrayStack<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<Object> composeStack)
Starts the operation..

Parameters:
composeStack - The composing stack.
Since:
2.2.0

end

public void end(ArrayStack<Object> composeStack,
                Object value,
                String expression,
                String body,
                String role,
                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<Object> composeStack,
                    Object value,
                    String expression,
                    String body,
                    String role,
                    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


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