Form controls reacting to several events

Hi,

If I understand correctly the spec (more precisely §8 XForms Actions), it's possible to launch several
actions on only one event for a formControl, but it's impossible to launch several actions for different events.

For instance,it is legal (according to xforms schema) to have two actions launched by an event:

<xform:input ref="boss:name">
      <xform:caption>Name</xform:caption>
      <xform:action event="mouseover">
           <xform:setValue ref="boss:surname" value="new value"/>
           <xform:setFocus idref="boss:surname"/>
      </xform:action>
</xform:input>

But the following isn't legal (actions are launched by two different events), althought it seems useful:

<xform:input  ref="boss:name">
      <xform:caption>Name</xform:caption>
      <xform:action event="mouseover">
           <xform:setValue ref="boss:surname" value="new value"/>
      </xform:action>
      <xform:action event="Click">
           <xform:setFocus idref="boss:surname"/>
      </xform:action>
</xform:input>

So I think that we should put maxOcurrs = "unbounded" for xform:action element 
in commonUIChildren group to define several actions launched by different events.


Thank you for feedback.

Xavier

Received on Monday, 15 October 2001 08:01:42 UTC