W3C home > Mailing lists > Public > public-xformsusers@w3.org > November 2016

Re: Re-evaluating a switch

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Thu, 10 Nov 2016 10:29:14 -0800
Message-ID: <CAAc0PEW-9zA2Z+FZ4w0e8=ebBMAHWGWXHeDsUHibaxdiethL5g@mail.gmail.com>
To: Steven Pemberton <steven.pemberton@cwi.nl>
Cc: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
> True, but the control would get an xforms-value-changed, so it could be
> argued, that the response to a value changed is to activate the switch
> evaluation, which would result in the "selected" node being selected.

I am not sure why we would choose that behavior:

- That would break backward compatibility.
- xforms-value-changed is a notification whose purpose is to allow
detecting when the value associated with a control has changed, not to
perform behavior on controls. It is just a notification event.
- The initial selection via `selected` should happen upon the control
becoming relevant, and *maybe* when the binding changes (but I am not sure
in that case). I don't think we need to handle it at any other times.

Received on Thursday, 10 November 2016 18:30:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:47 UTC