Versions Compared

Key

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

...

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

optional

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

 

from-field

optional

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

 

value

optional

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
  • Currently, the field attribute is optional. Require the field attribute.
  • Currently, the from-field and value attributes are optional. Require one of the two attributes.
  • 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 Rename the default-value attribute . The value attribute will be used for default constant valuesto default.
  • Remove the type attribute default.

...

Section
Column
width20%
<if-has-permission>
Column
Contains blocks of code that are executed based on the user's permissions.

Attributes

permission

optional

The permission to check

 

action

optional

The action to be performed (permission scope)

 


Child Elements

<else>

optional


Info
titleProposed Changes
  • Currently, the permission and action attributes are optional. Require the permission and action attributes.
Section
Column
width20%
<if-instance-of>

...

Column
Contains blocks of code that are executed based on a field's class.

Attributes

field

optional

The name of the field to test

class

optional

The name of the class

map-name

optional

The name of the map containing field


Child Elements

<else>

optional


Info
titleProposed Changes
  • Deprecate and replace with scriptlet.
Section
Column
width20%
<if-not-empty>
Column
Contains blocks of code that are executed based on the size of a collection.

Attributes

field

optional

The name of the field to test

map-name

optional

The name of the map containing field


Child Elements

<else>

optional


Info
titleProposed Changes
  • Currently, the field attribute is optional. Require the field attribute.
  • Eliminate the map-name attribute.
<if-regexp>
Section
Column
width20%
<if-instance-of>
Column
Contains blocks of code that are executed based on matching a regular expression to a field.

Attributes

field

optional

The name of the field to test

expr

optional

The regular expression to match

map-name

optional

The name of the map containing field


Child Elements

<else>

optional


Info
titleProposed Changes
  • Currently, the field and expr attributes are optional. Require the field and expr attributes.
  • Eliminate the map-name attribute.
Section
Column
width20%
<if-validate-method>
Column
Invokes the specified Java class method that returns a boolean value. Blocks of code are executed based on the boolean value.

Attributes

field

optional

The name of the field to use as a method argument

class

optional

The name of the Java class

method

optional

The name of the class method

map-name

optional

The name of the map containing field


Child Elements

<else>

optional


Info
titleProposed Changes
  • Deprecate and replace with simple method call.
<if-not-empty>
<if-regexp>

...

<iterate>
<iterate-map>
<loop>

...