W3C home > Mailing lists > Public > www-forms@w3.org > October 2002

RE: readonly and setvalue

From: bhanu <bhanu_k@hotmail.com>
Date: Sat, 5 Oct 2002 17:17:54 -0700
To: "'Micah Dubinko'" <MDubinko@cardiff.com>, <www-forms@w3.org>
Message-ID: <002d01c26ccd$d0f221e0$61ae1990@speruvemus>

>>Good question! Does 'readonly' mean readonly-to-user, or

"readonly" is a Model Item Property right? As per definition of Model
Item property, readonly is attached to the "data". So anytime "readonly"
evaluates to true, it is for both the Processor and the user. 

In fact the statement the spec, I think, states that (Note the words

6.1.2 The readonly Property
"When evaluating to true, this model item property indicates that the
XForms Processor should not allow any changes to the bound instance data

On the other hand "calculate" is a MIP with an effect on the UI. The
processor will "overwrite" the data (with a calculate) on recalculation,
so the UI has an obligation to show this behavior to the user (by making
it readonly)

This is similar to relevant MIP. "non-relevant" instance nodes are not
serialized on submit, hence UI has an obligation to show that behavior
to the User (by making it hidden or disabled).

So coming back to my original question, what should an implementation do
when "setvalue" is attempted on a readonly node?

Received on Saturday, 5 October 2002 20:19:03 UTC

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