Event questions.

Hi All,

I have three questions related to Events in XForms.

1- The latest XForms 1.0 recommendation doesn´t forbid a handler attribute
in an <action> element,so does it mean that an <action> can be defined with
a handler attribute pointing to another <action>? 

(This can be usefull in order to reuse code).

  Something like that should it work? 

....
    
<xforms:trigger id="trigger1"> 
  <xforms:label>Button1</xforms:label> 
  <xforms:action ev:event="DOMActivate" ev:target="trigger1"
ev:observer="trigger1" ev:handler="action2"/>
</xforms:trigger>
<xforms:trigger>
  <xforms:label>Button2</xforms:label> 
  <xforms:message id="action2" level="modal" ev:event="DOMActivate"> Hi
again!!</xforms:message>
   
</xforms:trigger>
......

I mean, when the "Button1" is pressed should the message be shown?


2- What is the interpretation of an <action> in terms of XML Events, is it a
listener or can be always considered like a handler?

3- What is the aim of having events in a <model> element, more specifically
what does this sentence mean?

"Attributes from XML Events are allowed on this element to facilitate
creating observers"

Many thanks

Roger.
    

Received on Friday, 28 July 2006 12:22:27 UTC