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