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

Re: readonly and setvalue

From: Mikko Honkala <honkkis@tml.hut.fi>
Date: Tue, 08 Oct 2002 14:04:14 +0300
Message-ID: <3DA2BBAE.2010303@tml.hut.fi>
To: "Klotz, Leigh" <Leigh.Klotz@pahv.xerox.com>
CC: "'Tomayko, Ryan'" <Ryan_Tomayko@stercomm.com>, "'www-forms@w3.org'" <www-forms@w3.org>

Hi Leigh,

I remembered that we agreed that calculate implies readonly. But if we 
put it that way:
"calculated nodes are not settable by form controls or setvalue.", then 
I agree, calculate would still work. We might want to be future-proof, 
and say: "It MUST not be possible to set calculated nodes by any other 
means than the calculate itself".

In addition "Form controls bound to calculated nodes SHOULD be rendered 
as they were bound to readonly nodes."

-mikko

Klotz, Leigh wrote:
> I'm confused -- do you mean something like this, which I copied from the
> X-Smile 0.6 examples?
>   <bind nodeset="/purchaseOrder/totals/subtotal"
> calculate="sum(../../items/item/total)"/>
> If so, I don't believe you also need a
>   <bind nodeset="/purchaseOrder/totals/subtotal" readonly="true()"/>
> 
> I think we've agreed that calculated nodes are not settable by form controls
> or setvalue.
> 
> -----Original Message-----
> From: Tomayko, Ryan [mailto:Ryan_Tomayko@stercomm.com] 
> Sent: Monday, October 07, 2002 12:54 AM
> To: Jérôme Nègre; Micah Dubinko
> Cc: 'bhanu'; www-forms@w3.org
> Subject: RE: readonly and setvalue
> 
> 
> 
> Another example of why you would want readonly only to apply to the UI is
> calculating values. For instance, you my want to display a list of product
> line items and allow the user to input the quantity and unit price for each.
> The line total would be readonly and calculated based on the quantity * unit
> price.
> 
> - Ryan Tomayko
> 
> 
> -----Original Message-----
> From: Jérôme Nègre [mailto:jerome.negre@e-xmlmedia.fr] 
> Sent: Monday, October 07, 2002 3:07 AM
> To: Micah Dubinko
> Cc: 'bhanu'; www-forms@w3.org
> Subject: Re: readonly and setvalue
> 
> 
> 
> Hi,
> 
> 
>>Good question! Does 'readonly' mean readonly-to-user, or
>>readonly-to-everything?
>>
>>Implementers, how did you handle this?
> 
> 
> Here, for XFE, we chose readonly-to-user. That way, one can have a 
> select or a range showing data without the possibility for the user to 
> change it.
> 
> Regards,
> Jérôme
Received on Tuesday, 8 October 2002 07:01:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:53 GMT