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

RE: readonly and setvalue

From: Klotz, Leigh <Leigh.Klotz@pahv.xerox.com>
Date: Mon, 7 Oct 2002 16:04:41 -0700
Message-ID: <51B8ABCE456FD111899900805F6FD6EE10A98B14@mercury.ADOC.xerox.com>
To: "'Tomayko, Ryan'" <Ryan_Tomayko@stercomm.com>
Cc: "'www-forms@w3.org'" <www-forms@w3.org>

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 Monday, 7 October 2002 19:05:48 GMT

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