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

Re: Event handlers in xforms:bind

From: Allan Beaufour <beaufour@gmail.com>
Date: Wed, 26 Apr 2006 13:16:04 +0200
Message-ID: <90d6cb0e0604260416l7f18f0e3i6893cb62a7272124@mail.gmail.com>
To: "Erik Bruchez" <ebruchez@orbeon.com>
Cc: "Xforms W3C WG" <www-forms@w3.org>

On 4/25/06, Erik Bruchez <ebruchez@orbeon.com> wrote:
> 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).

That's also my interpretation.

> 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.

I remember this being discussed at a f2f. Unfortunately I cannot
remember either pros or cons. Maybe somebody else can?

> 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?

Indeed, as the model should contain the backplane. This would make it
possible to push more "logic" up in the model. But there might be an
obvious reason for not doing this (which I do not know, or have
forgotten :) ).

> Do implementors address this issue?

Well, it's not an issue, it's just the spec. ;-) But no, it's not
possible in Firefox.

--
... Allan
Received on Wednesday, 26 April 2006 11:22:37 GMT

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