Decorator Utils: Decorator Tag Library

This Tag Library is usefull for decorating objects, transforming the data containers in presentable text data. This is done by aplying a decorator to the object we wish to decorate. This is version 0.6 .

  • decorate This tag is usefull for decorating objects, transforming the data containers in presentable text data .
  • decorateAndStore This tag is usefull for decorating objects, transforming the data containers in presentable text data .
  • iterateAndDecorate This tag is usefull for decorating objects, transforming the data containers in presentable text data .

Required attributes are marked with a * .

decorate

This tag is usefull for decorating objects, transforming the data containers in presentable text data. This is done by aplying a decorator to the object we wish to decorate.

Can contain: JSP

Attributes

NameDescriptionType
attributes A set of extra attributes that you may wish to add to your decorator through setter methods. The set of attributes should be seperated by commas (','). The attributes may be static or dynamic. For static attributes you must indicate the name of the property and it's value in the following manner: property=value. Dynamic attributes only require the name of the bean to retrieve, which will also be the name of the property to set. String
*decorator The fully qualified class name of a class that should be used to "decorate" the underlying object being displayed. String
iterate When set to true, the decorator expects a Collection of values to decorate and iterates through the Collection decorating each object seperatly. Default value is false. boolean
*nameThe name of the bean to be retrieved.String
propertyThe name of the property to be retrieved.String
scope The scope within which to search for the specified bean. Default is page scope. String
setPageContext If set to true, the decorator will be populated with the PageContext instance. Setter methods for pageContext must be exist in the decorator class (setPageContext). Default value is false. boolean

decorateAndStore

This tag is usefull for decorating objects, transforming the data containers in presentable text data. This is done by aplying a decorator to the object we wish to decorate.

Can contain: JSP

Attributes

NameDescriptionType
attributes A set of extra attributes that you may wish to add to your decorator through setter methods. The set of attributes should be seperated by commas (','). The attributes may be static or dynamic. For static attributes you must indicate the name of the property and it's value in the following manner: property=value. Dynamic attributes only require the name of the bean to retrieve, which will also be the name of the property to set. String
*decorator The fully qualified class name of a class that should be used to "decorate" the underlying object being displayed. String
*id Stores the result of the decoration in the specified scope instead of printing it. If the scope is not specified, the default scope is the page scope. String
iterate When set to true, the decorator expects a Collection of values to decorate and iterates through the Collection decorating each object seperatly. Default value is false. boolean
*nameThe name of the bean to be retrieved.String
propertyThe name of the property to be retrieved.String
scope The scope within which to search for the specified bean. Default is page scope. String
setPageContext If set to true, the decorator will be populated with the PageContext instance. Setter methods for pageContext must be exist in the decorator class (setPageContext). Default value is false. boolean
toScopeThe scope in which the result will be stored.String

iterateAndDecorate

This tag is usefull for decorating objects, transforming the data containers in presentable text data. This is done by aplying a decorator to the object we wish to decorate.

Can contain: JSP

Attributes

NameDescriptionType
attributes A set of extra attributes that you may wish to add to your decorator through setter methods. The set of attributes should be seperated by commas (','). The attributes may be static or dynamic. For static attributes you must indicate the name of the property and it's value in the following manner: property=value. Dynamic attributes only require the name of the bean to retrieve, which will also be the name of the property to set. String
*decorator The fully qualified class name of a class that should be used to "decorate" the underlying object being displayed. String
*id Stores the result of the decoration in the specified scope instead of printing it. If the scope is not specified, the default scope is the page scope. String
iterate When set to true, the decorator expects a Collection of values to decorate and iterates through the Collection decorating each object seperatly. Default value is false. boolean
*nameThe name of the bean to be retrieved.String
propertyThe name of the property to be retrieved.String
scope The scope within which to search for the specified bean. Default is page scope. String
setPageContext If set to true, the decorator will be populated with the PageContext instance. Setter methods for pageContext must be exist in the decorator class (setPageContext). Default value is false. boolean
toScopeThe scope in which the result will be stored.String