This tag can be flexibly used to insert the value of an attribute into a
page. As in other usages in Tiles, every attribute can be determined to have
a "type", either set explicitly when it was defined, or "computed". If the
type is not explicit, then if the attribute value is a valid definition, it
will be inserted as such. Otherwise, if it begins with a "/" character, it
will be treated as a "template". Finally, if it has not otherwise been
assigned a type, it will be treated as a String and included without any
special handling.
Example :
Tag Information
Tag Class
org.apache.tiles.jsp.taglib.InsertAttributeTag
TagExtraInfo Class
None
Body Content
scriptless
Display Name
None
Attributes
Name
Required
Request-time
Type
Description
ignore
false
true
boolean
If true, if an exception happens during
rendering, of if the attribute is null, the problem will be ignored.
preparer
false
true
java.lang.String
The preparer to invoke before rendering the attribute.
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.
defaultValue
false
true
java.lang.Object
The default value of the attribute. To use only if
the attribute was not computed.
defaultValueRole
false
true
java.lang.String
The default comma-separated list of roles. To use
only if the attribute was not computed.
defaultValueType
false
true
java.lang.String
The default type of the attribute. To use only if
the attribute was not computed.
name
false
true
java.lang.String
The name of the attribute.
value
false
true
org.apache.tiles.Attribute
The attribute to use immediately, if not null.
flush
false
true
boolean
If true, the response will be flushed after the insert.
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.