W3C home > Mailing lists > Public > www-forms@w3.org > April 2006

Event handlers in xforms:bind

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Tue, 25 Apr 2006 12:54:08 -0700
Message-ID: <444E7E60.2010707@orbeon.com>
To: Xforms W3C WG <www-forms@w3.org>


It is my understanding that it is not possible to attach event
handlers to xforms:bind (or rather, this wouldn't do anything since no
XForms event targets xforms:bind).

But it would be very useful, in particular, to be able to detect value
changes from within the XForms model. For example:

<xforms:bind nodeset="first-name">
   <xforms:action ev:event="xforms-value-changed"/>

Currently, xforms-value-changed is only defined for controls, and upon
refresh. The same of course goes for all the MIP changes. But you get
the general idea.

Right now, the workaround involves using something like a dummy
control to detect that kind of changes on nodes that do not have
bound controls.

This would be very much in line with the backplane idea and the
further abstraction of model from controls in XForms.

Does something like this make sense to anybody else? Do implementors
address this issue?


Orbeon - XForms Everywhere:
Received on Tuesday, 25 April 2006 19:58:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:17 UTC