W3C home > Mailing lists > Public > www-forms@w3.org > October 2001

Form controls reacting to several events

From: xavier <xavier.gagneur@e-xmlmedia.fr>
Date: Mon, 15 Oct 2001 13:58:44 +0200
Message-ID: <003f01c15570$bdc580a0$0b0aa8c0@ploussard>
To: <www-forms@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:50 GMT