Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

error-list-name

optional

The name of a list that will contain the message

Default is "error_list"


Child Elements

<[fail-message>message>

optional

<[fail-property>property>

optional


Info
titleProposed Changes

Currently, child elements are optional. Require at least one child element.

...

<request-to-field>
<session-to-field>
<set>

Assigns a value to a field.

Code Block
xml
xml

<set field="foo" value="bar" />
<set field="baz" from-field="foo" />

Attributes

field

required

The name of the field to set (the l-value)

 

from-field

required if value attribute is empty

The name of a field to copy from (the r-value)

 

value

required if from-field attribute is empty

A constant value

 

default-value

optional

A default constant value - used if from-field evaluates to null

 

type

optional

The Java data type of field

Defaults to "String"

set-if-null

optional

Controls if field can be set to null.

Defaults to "false"

set-if-empty

optional

Controls if field can be set to an empty value. The meaning of "empty" depends on the Java data type.

Defaults to "true"


Info
titleProposed Changes
  • Add a new attribute: from-script. The attribute will be used exclusively for scriptlets that are currently found in other attributes.
  • Rename the from-field attribute to from. The attribute will be used exclusively for UEL expressions.
  • Change the behavior of the value attribute: The attribute will be used exclusively for string constants.
  • Remove the type attribute default.
<set-calendar>
<set-service-fields>

...