Extension context information
Introduction
XForms specifies some context information for events. Orbeon Forms adds further context information to events.
All events
Orbeon Forms enhances the XML Events event()
function to take a qualified name as parameter:
This allows namespacing attribute names, therefore better allowing for extension attributes.
On all events, the following extension attributes are supported:
Context | Type | Description |
---|---|---|
|
| event type (also known as event name), for example |
|
| static id of the event target ( |
|
| absolute id of the event target |
|
| static id of the event observer |
|
| absolute id of the event observer |
|
| whether the event is allowed to bubble or not |
|
| whether the event is cancelable or not |
|
| current event phase: capture, target, or bubbling |
|
| event target's current repeat indexes, if any, starting from the ancestor repeat |
|
| event target's ancestor repeat ids, if any |
|
| event target's id prefixes, if any, starting from the ancestor components. This will be empty unless the target is within an XBL component |
UI events
These are:
DOMActivate
DOMFocusIn
DOMFocusOut
xforms-select
xforms-deselect
xforms-enabled
xforms-disabled
xforms-help
xforms-hint
xforms-valid
xforms-invalid
xforms-required
xforms-optional
xforms-readonly
xforms-readwrite
xforms-value-changed
The following extension attributes are supported:
Context | Type | Description |
---|---|---|
|
| event target's position in the user interface. This is the control's static position, i.e. this does not reflect possible repeat iterations |
|
| event target's single-item or repeat binding if any |
|
| event target's label value if any |
|
| event target's hint value if any |
|
| event target's help value if any |
|
| event target's alert value if any |
|
| event target's error level if any: |
On xforms-value-changed
, the following extension attributes are supported:
event('xxf:value')
[SINCE Orbeon Forms 4.4] The current value (that is, the value after the change) of the control.
On xforms-select
, the following extension attributes are supported:
event('xxf:item-value')
When this event is dispatched to in response to a selection control item being selected, returns the value of the selected item.
[SINCE Orbeon Forms 2018.2]
xxf:binding
also returns the binding if the control has a binding but is non-relevant. In previous versions, if the control was non-relevant, xxf:binding
always returned the empty sequence.
Other events
On xforms-submit-serialize
, the following extension attributes are supported:
Context | Type | Description |
---|---|---|
|
| submission's single-node binding if any |
|
| submission's requested serialization, e.g. |
See also
Last updated