Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | [CWS eforms2] "Read Only" setting of an binding not properly propagated to the control | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | Frank Schönheit <frank.schoenheit> | ||||||||
Component: | ui | Assignee: | marc.neumann | ||||||||
Status: | CLOSED FIXED | QA Contact: | issues@sw <issues> | ||||||||
Severity: | Trivial | ||||||||||
Priority: | P3 | CC: | issues | ||||||||
Version: | current | ||||||||||
Target Milestone: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||||
Developer Difficulty: | --- | ||||||||||
Attachments: |
|
Description
Frank Schönheit
2004-11-03 15:28:47 UTC
Created attachment 18884 [details]
document to reproduce the bug case
dvo: Two problems: 1) XAttribute::setNodeValue doesn't notify any changes, and therefore the XForms model doesn't get any notice that something has changed. I have a patch for this, but can't currently commit due to the ongoing resync. 2) According to the XForms/XPath standard, the expression evaluations to a node-set. A node-set interpreted as a boolean is true if (and only if) the node-set it not empty. In other words, the given expression tests whether the attribute is present (which it always is), and not whether its string value is 'true'. To do so, use the boolean-from-string(..) function defined in XPath. Probably surprising, but unfortunately true. dvo->mbu: Please have a look at this. issue resolved,added MIP propagation to /forms/xforms/binding.cxx - distributeMIP(). note that the bugdoc itself does not work as expected because the binding-expression for the readonly-condition should read 'boolean-from-string(/instanceData/control/@readonly)'. see http://www.w3.org/TR/2002/WD-xforms-20020118/slice7.html for further informations. Created attachment 20771 [details]
document to reproduce the bug case
I attached a new (XForms conformant) document to ease verification of the fix Created attachment 21749 [details]
changed mime-type of test document
reopen to assign to QA please verify. set to state 'resolved/fixed' verified in cws eforms4 Hi, fixed in current developer build -> close. The current developer build can be found at http://download.openoffice.org/680/index.html Feel free to reopen if this issue is not fixed in the developer build. Bye Marc |