Event handlers in xforms:bind

All,

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?

-Erik

-- 
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/

Received on Tuesday, 25 April 2006 19:58:20 UTC