tiles
Tag putAttribute
Put an attribute in enclosing attribute container tag.
Enclosing attribute container tag can be :
(or any other tag which implements the PutAttributeTagParent
interface. Exception is thrown if no appropriate tag can be found.
Put tag can have following atributes :
- name : Name of the attribute
- value : value to put as attribute
- type : value type. Possible type are : string (value is used as direct
string), template (value is used as a page url to insert), definition (value
is used as a definition name to insert), object (value is used as it is)
- role : Role to check when 'insertAttribute' will be called.
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.
Tag Information |
Tag Class | org.apache.tiles.jsp.taglib.PutAttributeTag |
TagExtraInfo Class | None |
Body Content | scriptless |
Display Name | None |
Attributes |
Name | Required | Request-time | Type | Description |
name | true | true | java.lang.String |
The name of the attribute to put.
|
value | false | true | java.lang.Object |
The value of the attribute. Use this parameter, or
expression, or body.
|
expression | false | true | java.lang.String |
The expression to calculate the value from. Use this
parameter, or value, or body.
|
role | false | true | java.lang.String |
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 | false | true | java.lang.String |
The type (renderer) of the attribute.
|
cascade | false | true | boolean |
If true the attribute will be cascaded to all nested attributes.
|
Variables |
No Variables Defined. |
Output Generated by
Tag Library Documentation Generator.
Java, JSP, and JavaServer Pages are trademarks or
registered trademarks of Sun Microsystems, Inc. in the US and other
countries. Copyright 2002-4 Sun Microsystems, Inc.
4150 Network Circle
Santa Clara, CA 95054, U.S.A.
All Rights Reserved.