decorator
Defines a decorator for this element's
parent content-type
or
group
element. Decorators are Java
programming constructs that can be used by CUE plugins and third party
code to simplify the development of complex templates. This is done by
allowing complex logic to be implemented in Java code in a decorator,
instead of in the templates. See the JavaDoc for
neo.xredsys.presentation
for more information
on decorators.
Syntax
<decorator class="text" name="text" fail-on-error="(true|false)"? > <parameter/>? </decorator>
Attributes
class="
text"
(optional)-
The name of the Java class that implements the decorator. You are recommended to omit this attribute and specify the instance name of the decorator in the
name
attribute instead. name="
text"
(optional)-
If the
class
attribute is omitted (recommended), then this attribute must hold the instance name of the decorator you want to use. Ifclass
is specified, then this attribute can hold any name you choose (for documentation purposes). fail-on-error="
(true|false)"
(optional)-
If set to
true
, then the Content Store will throw an exception if the decorator fails to decorate the article in the presentation layer.The default value
false
means that any exceptions the decorator might throw while decorating article are logged and then ignored.Setting this attribute to
true
only has meaning for article decorators (that isdecorator
elements that are children ofcontent-type
elements.