re: event target

Greetings, the short answer to your question is that we are in the process
of completely rewriting the Processing Model section of the XForms spec,
once this is complete the answer to your question should become clear.

The new processing model will only be available in the next version of the
spec. I suspect that next question might be when will this be available.
I'm afraid that I'm not able to say when but I will point out that we are
supposed to relese updated Working Drafts at approximately 3 month
intervals, the last draft was dated: 28 August 2001

Regards, Roland

Date: Thu, 22 Nov 2001 11:37:49 +0000
From: Alistair Coles <anc@hplb.hpl.hp.com>
To: www-forms@w3.org
Subject: event target

Hi,
I have recently joined this list, so please forgive me if these are
'old' questions...

Further to the thread below, would it be correct to infer from the
spec. (in particular 11.4.6) that the 'xforms-instance-changed' event
is targetted at the form control node and NOT the instance data node?

If so, that would mean that an event listener that registered with a
form control node would handle an xforms-value-changing event followed
by an xforms-instance-changed event for each 'change' to the
control...correct? And if multiple form controls ref the same instance
data, each one of them would fire an xforms-instance-changed event
when that data changed?

How might one attach a listener to the form that is called once (and
only once) when instance data changes, irrespective of the number of
form controls with binding to that data?

Many thanks,
Alistair

> Message-ID: <00cb01c16126$f33876e0$7ef5a8c0@steven>
> From: "Steven Pemberton" <steven.pemberton@cwi.nl>
> To: <www-forms@w3.org>
> Date: Tue, 30 Oct 2001 10:40:43 +0100
> Subject: Re: Events in XForms
>
> From: Jérôme Nègr <jerome.negre@ecl2000.ec-lyon.fr>
> Date: Fri, 5 Oct 2001 11:00:41 +0200
>
> > Hi, in §11.3 it says "Unless otherwise noted, the target node for all
> events is
> > the xform element". I didn't find such a note, so e.g. an
> xforms-value-changing event is
> > targeted to the corresponding xform element. Does this mean that a form
> > control can't have an action (see §7.14.4.5) listening to these XForms
> > events ? That would be surprising, so I think I must have misunderstood
> something...
> > If someone could enlighten me, thanks ! Jérôme Nègre
>
> It was an omission. It will be fixed in the next draft: for each event it
> will state which element it will be targetted at.
>
> Best wishes,
>
> Steven Pemberton
> Co-chair, W3C Forms Working Group


--
***********************************************************
Alistair Coles                        alistair_coles@hp.com
Hewlett-Packard Laboratories,

Received on Wednesday, 28 November 2001 12:00:27 UTC