Binding Activator

Top  Previous  Next

A binding activator is a special reference that points to a property of a widget component, to a component event or to a field of a context variable. A change in the component or variable, or the event being fired, will start a new bindings processing session - all bindings in the current widget will be scanned, and those bindings which list this particular activator as their activator will be processed.

Here is a list of supported activator syntax variations:

1. Property of a widget component

form/component:property

If the property of component is changed, the activator will run.

2. Event of a widget component

form/component:event@

If component has an event called event, the activator will run when this event fires.

note_example-wt

Example: form/button1:click@

This activator will run when the button1 button is pressed.

3. Server context event

context:property

This activator will trigger a binging once variable named property of server context named context is changed.

note_example-wt

Example: users.admin.devices.dev1:voltage

This activator will run upon the change of voltage property in server-side users.admin.devices.dev1 context.

4. Server context event

context:event@

This activator will trigger a binging once event named event will occur in server context named context.