xforms-value-changed

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xforms-value-changed

Park, Michael

Hello All,

 

If you have an ‘xforms-value-changed’ action nested in a control should the change only be tied to that control?

 

I’m asking because I a have a select1 with ‘xforms-value-changed’ that’s in a repeat and if I make a change at index 3 they all change.

 

I’m using version 3.6.

 

Thanks,

Mike



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xforms-value-changed

Erik Bruchez
Administrator
In a repeat, Orbeon Forms may dispatch more xforms-value-changed  
events, in particular if the controls "shift" due to an insert or  
repeat. Is that what you are seeing? This behavior is not exactly  
mandated by the XForms spec (which is a little vague in that respect I  
think), but that's how we implemented things in Orbeon Forms.

The XForm spec has some issues with UI events in our opinion. This has  
been discussed quite in depth in the XForms working group, but there  
is no standard solution yet. In particular, XForms allows a control to  
send extra xforms-value-changed events, which may not be desirable.

At Orbeon we would like that xforms-value-changed (or a future new  
event) be sent if and only if the value of the control has changed.  
But at the moment, this is not always the case, so you can't rely on  
getting a single xforms-value changed event.

Now it may also be the case that you are hitting a bug ;-)

-Erik

On Nov 19, 2007, at 9:21 AM, Park, Michael wrote:

> Hello All,
>
> If you have an ‘xforms-value-changed’ action nested in a control  
> should the change only be tied to that control?
>
> I’m asking because I a have a select1 with ‘xforms-value-changed’  
> that’s in a repeat and if I make a change at index 3 they all change.
>
> I’m using version 3.6.
>
> Thanks,
> Mike
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws