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

Re: Deferred action behaviour

From: John Boyer <boyerj@ca.ibm.com>
Date: Mon, 10 Jul 2006 13:50:25 -0700
To: "Allan Beaufour" <beaufour@gmail.com>
Cc: www-forms <www-forms@w3.org>, www-forms-request@w3.org
Message-ID: <OFA53ADE10.56E59FD5-ON882571A7.0071EE4B-882571A7.00727BB0@ca.ibm.com>
Hi Allan,

The working group has reviewed this issue and agrees with your assessment 
that deferred action updates are not supposed to bypass the event system.
This matter is being corrected as part of an erratum due to be published 
this week, the scope of which also includes a clarification of the meaning 
of outermost action as it relates to when deferred updates are performed.

Best regards,
John M. Boyer, Ph.D.
Senior Product Architect/Research Scientist
Co-Chair, W3C XForms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com  http://www.ibm.com/software/

Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer

"Allan Beaufour" <beaufour@gmail.com> 
Sent by: www-forms-request@w3.org
05/18/2006 01:38 AM

www-forms <www-forms@w3.org>

Deferred action behaviour

At the teleconf. "deferred action behaviour" was mentioned while
talking about events.

I've always thought that <setvalue/> follows the "Sequence: Value
Change", which sets the instance data, and then dispatches
xforms-recalculate, xforms-revalidate, xforms-refresh.

So I then thought that inside an action block, the dispatching of
these events would be delayed until after the last action. So these
<setvalue .../>
  <setvalue .../>
would be equivalent.

But, re-reading about actions, I suddenly see this:
"Each outermost action handler can be thought of as having a set of
Boolean flags, initially false, to indicate whether each of the
actions rebuild, recalculate, revalidate, and refresh are required
upon termination of the outer action handler."

These actions "bypass" the normal event system (which I think makes
sense). But shouldn't the <action/> dispatch events, and not use the
actions? With the current wording (1) would result in events, and (2)
would not.

It sounds wrong to me. I might have missed something though?

... Allan
Received on Monday, 10 July 2006 20:50:31 UTC

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