tiles
Tag addAttribute


Add an element to the surrounding list. Equivalent to 'put', but for list element.

Add an element to the surrounding list. This tag can only be used inside putList tag. Value can come from a direct assignment (value="aValue") or from a bean. One of 'value' or 'beanName' must be present.



Tag Information
Tag Classorg.apache.tiles.jsp.taglib.AddAttributeTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
valuefalsetruejava.lang.String

Attribute value. Can be a String or Object.

typefalsefalsejava.lang.String

Specify content type: string, template or definition.

  • String : Content is printed directly.
  • template : Content is included from specified URL. Value is used as an URL.
  • definition : Value denote a definition defined in factory (xml file). Definition will be searched in the inserted tile, in a <insert attribute="attributeName"> tag, where 'attributeName' is the name used for this tag.
rolefalsetruejava.lang.String

If the user is in the specified role, the tag is taken into account; otherwise, the tag is ignored (skipped).

The role isn't taken into account if <add> tag is used in a definition.


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.