XForms Actions Elements
This section defines the controller layer of XForms, an XML Events-based common set of actions that can be invoked in response to events.
All form controls as well as other elements defined in the XForms specification have a set of common behaviors that encourage consistent authoring and look and feel for XForms-based applications. This consistency comes from attaching a common set of behaviors to the various form controls.
In conjunction with the event binding mechanism provided by XML Events, these handlers provide a flexible means for forms authors to specify event processing at appropriate points within the XForms user interface. XForms Actions are declarative XML event handlers that capture high-level semantics. As a consequence, they significantly enhance the accessibility of XForms-based applications in comparison to previous Web technologies that relied exclusively on scripting.
XForms Action Elements
The table below shows an overview of the action elements.
All these action elements also make up the Action Content Set.
Attributes from the Common Attributes group, the Common Action Attributes group and the XML Events group are always optional.
Attributes from the Single Node Binding Attributes group and the Node Set Binding Attributes group are always required, unless stated otherwise.
The model attribute is always of type xsd:IDREF, which means it needs to reference an existing model's id attribute.
Specification
Link to the XForms specification: XForms Actions.
Topics
- The action element
- The setvalue element
- The insert element
- The delete element
- The setindex element
- The toggle element
- The setfocus element
- The dispatch element
- The rebuild element
- The recalculate element
- The revalidate element
- The refresh element
- The reset element
- The load element
- The send element
- The message element
- Common Action Attributes
- XML Events Attributes