W3C home > Mailing lists > Public > www-forms@w3.org > December 2001

Order of xforms:revalidate and xforms:recalculate

From: T. V. Raman <tvraman@almaden.ibm.com>
Date: Wed, 19 Dec 2001 14:35:52 -0800
Message-ID: <15393.5704.281459.799160@bubbles.almaden.ibm.com>
To: Jérôme Nègre <jerome.negre@e-xmlmedia.fr>
Cc: <www-forms@w3.org>
The thought underlying the sequence is:

You type a value into a field --
first you need to check if that is valid.

Once you've checked it is valid, you run the recalculate to
update fields that may depend on the one you filled in.
That in turn may change fields --hence the revalidate after

Thus, depending on how the constraints are authored, it
might be possible to type in a value that is "locally valid"
but turns out to be invalid with respect to the form.
>>>>> "=?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=" == =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=  <iso-8859-1> writes:

    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> Hi, If I understand
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> correctly the latest
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> draft and more
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> precisely chapter
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> 11.3, the following
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> happens when a form
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> control has a new
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> value :

    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> First, the model is
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> revalidated, using
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> the model item
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> property isValid
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> (chapter11.3.16 point
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> 2).  Then, the model
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> is recalculated, and
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> the model item
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> property isValid gets
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> its new value(chapter
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> 11.3.17).

    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> Doesn't this mean
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> that the validation
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> uses inaccurate data,
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> and thus shouldn't
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> the order of this
    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> events be switched ?

    =?iso-8859-1?B?Suly9G1lIE7oZ3Jl?=> Regards, Jérôme Nègre

Best Regards,

IBM Research: Human Language Technologies
Phone:        1 (408) 927 2608
Fax:        1 (408) 927 3012
Email:        tvraman@us.ibm.com
WWW:      http://www.cs.cornell.edu/home/raman
PGP:          http://emacspeak.sf.net/raman.asc
Snail:        IBM Almaden Research Center,
              650 Harry Road
              San Jose 95120
Received on Wednesday, 19 December 2001 17:36:26 UTC

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