W3C home > Mailing lists > Public > www-forms@w3.org > July 2006

Re: Event questions.

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Mon, 31 Jul 2006 16:51:02 +0100
Message-ID: <640dd5060607310851va983766nf60ccc60000d0659@mail.gmail.com>
To: www-forms@w3.org

Hi Steven,

> XML Events says that an element defaults to a handler for an event if it
> doesn't have a handler attribute on it.
> http://www.w3.org/TR/xml-events/Overview.html#section-attributedefaulting

Indeed...but the reason it's an interesting question is that
xf:message is a handler *anyway*. The action must implement the
handleEvent() method in order to be a handler, and this can't be
applied later--it must be there regardless of the ev:* attributes

I've just remembered that in a related discussion at the FtF before
last, I suggested that @handler is actually only needed on the
ev:listener element, and isn't needed elsewhere, and my vague
recollection is that this is the reason why.

It seems to me wrong to ignore the fact that xf:message is a handler
in its own right, so I think we should either execute *both* handlers,
or we should say that @ev:handler is not allowed on action handlers.
(The second solution seems more correct to me.)



Mark Birbeck
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
b: http://internet-apps.blogspot.com/

Download our XForms processor from
Received on Monday, 31 July 2006 15:51:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:18 UTC