- From: Allan Beaufour <beaufour@gmail.com>
- Date: Wed, 26 Apr 2006 13:16:04 +0200
- 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 UTC