Versions Compared

Key

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

...

Section
Column
width20%
<field-to-list>
Column
Copies
an environment
a field to a list.
Code Block
xml
xml
<field-to-list list="barList" field="foo" />

Attributes

list

optional

Name of the list. If the list does not exist, one is created.

field

optional

The field to add to the list


Info
titleProposed Changes
  • Currently, both attributes are optional. Require both attributes.
  • Deprecate and replace with UEL expression.

...

Section
Column
width20%
<property-to-field>
Column
Assigns a resource property to a field.
Code Block
xml
xml
<property-to-field field="foo" resource="fooResource.properties" property="fooKey" />

Attributes

field

optional

The name of the field

 

resource

optional

The resource that contains the property

 

property

optional

The property key

 

default

optional

A default value to be used when the property is not found

 

no-locale

optional

If "true" no localization will be performed on the property's value

Default is "false"

arg-list-name

optional

The name of a field that contains a list of arguments to be used in formatted property values

 


Info
titleProposed Changes
  • Currently, all attributes are optional. Require the field, resource, and property attributes.
Section
Column
width20%
<request-parameters-to-list>
Column
Copies request parameters to a list.
Code Block
xml
xml

<request-parameters-to-list list-name="fooList" request-name="fooParameter" />

Attributes

list-name

optional

Name of the list. If the list does not exist, one is created.

request-name

optional

The name of the request parameter. All parameter values will be added to the list


Info
titleProposed Changes
  • Currently, both attributes are optional. Require both attributes.
  • Rename the list-name attribute to list - to make the syntax similar to other operators.
  • Rename the request-name attribute to parameter-name - to make the syntax clearer.
Section
Column
width20%
<request-to-field>
Column
Copies a Servlet request attribute to a field.
Code Block
xml
xml

<request-to-field field="foo" request-name="fooParameter" />

Attributes

field

optional

The name of the field for the new object

request-name

optional

The name of the request parameter.

map-name

optional

The name of the map containing field


Info
titleProposed Changes
  • Currently, the field and request-name attributes are optional. Require both attributes.
  • Eliminate the map-name attribute.
  • Rename the request-name attribute to parameter-name - to make the syntax clearer.
<session-to-field>
Section
Column
width20%
<set>
Column
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.

...