Events from multiple bindings to the same instance data

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

Events from multiple bindings to the same instance data

Chris Bailey-2
Hi Xformers,

I have a page with multiple selection controls bound to the same instance
data. What I would like is for a single xforms-value-changed event to be
raised when any of the selection controls change their selection.

I have tried flags but to no avail. Can you tell me what is the best way to
approach this problem.

(See attached file for an example)

Cheers,
Chris

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

xforms_bound_select.xhtml (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Events from multiple bindings to the same instance data

Alessandro Vernet
Administrator
Hi Chris,

On 8/16/07, Chris Bailey <[hidden email]> wrote:
> I have a page with multiple selection controls bound to the same instance
> data. What I would like is for a single xforms-value-changed event to be
> raised when any of the selection controls change their selection.

If you have multiple controls bound to the same node, and you want to
receive the xforms-value-changed only once, why not put your event
handler inside one of the controls? This way your event handler will
be called only once.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws