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

RE: readonly and setvalue

From: Tomayko, Ryan <Ryan_Tomayko@stercomm.com>
Date: Tue, 8 Oct 2002 08:50:38 -0400
Message-ID: <D037B3982A54D611BA5E0006293835400132F19D@scidubmsg02.amr.stercomm.com>
To: "Klotz, Leigh" <Leigh.Klotz@pahv.xerox.com>
Cc: "'www-forms@w3.org'" <www-forms@w3.org>

Yes, sorry.. I was unaware of calcuated nodes being readonly by default.

- Ryan

-----Original Message-----
From: Klotz, Leigh [mailto:Leigh.Klotz@pahv.xerox.com] 
Sent: Monday, October 07, 2002 7:05 PM
To: Tomayko, Ryan
Cc: 'www-forms@w3.org'
Subject: RE: readonly and setvalue


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 08:52:43 GMT

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