Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Type of action

Description

Change of model (propertyChange)

Sets the value of a data element anew. With the indication of a target in XPath statements, refers to a data element of a simple type. Thus, the new value is set. The model changes can be made on leaf nodes only. If the XPath addresses a complex node, the action is ignored.

Visual event (uiAction)

Triggers visual actions. That is, it displays (fades in) or hides (fades out) components, color changes and so on. A target is indicated by an XPath statement. The statement refers to a data element and consequently its representation types. Then, the method (methodName) is executed. The definition of the method name is compliant with the Java Beans Definition

General Action (generalAction)

Triggers any kind of action.

Java Action Implementation (javaActionImpl)Calls a java action implementation (must implement Action interface) through java reflection api. Be sure this class implmenents the jaxfront action interface (com.jaxfront.core.rule.Action)

 

To set new model values, use a formula expression. With this expression, you can use complex XPath statements or extended functions. In the above example, the new value "my change of model" is set on the target node.

Codeblock
languagehtml/xml
titleThe following example shows an action with a change of model
<propertyChange>
<formulaExpression>"my change of model"</formulaExpression>
</propertyChange> 

 

To set new model values, use a formula expression. With this expression, you can use complex XPath statements or extended functionsWith an UI-action the method name and the parameters, which will be handed over, are required. In the above example , the new value "my change of model" is set on the target nodethe target element is hidden.

Codeblock
languagehtml/xml
titleThe following example shows an action with a visual event
<uiAction methodName="setVisible">
<param name="visible" type="boolean" value="true"/>
</uiAction> 

...

Use general action if you which to fire a formula (JEP expression).

Codeblock
languagehtml/xml
titleThe following example shows an action with a visual event
<generalAction>
<formulaExpression>any alid formula comes here<formulaExpression/>
</generalAction> 

Use a javaActionImpl in case you want to call your own action implementation.

Codeblock
languagehtml/xml
titleThe following example shows an action with a visual event
<javaActionImpl className="com.mypackage.myClass">
<param name="name1" type="String">my String<param/>
</javaActionImpl>