RE: readonly and setvalue

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

"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
"ANY CHANGES"). 

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
node"
....

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?

Regards,

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