Closed Bug 292725 Opened 20 years ago Closed 20 years ago

MIPs should apply to the context node for unrolled repeat "rows"

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allan, Assigned: allan)

References

()

Details

Attachments

(2 files)

If f.x. the context node for a repeat "row" is disabled, the entire row should
match :disabled. As in:
<xforms:instance xmlns="">
  <data>
    <value>v1</value>
    <value>v2</value>
  </data>
</xforms:instance>
<xforms:bind nodeset="value[1]" relevant="false()"/>

<xforms:repeat nodeset="values">
  <p>There it is: <xforms:ouput ref="."/></p>
</xforms:repeat>

Here the entire <p> (or rather the surrounding div of the contextcontainer)
should match :disabled.
Attached file Testcase
Attachment #182484 - Attachment is patch: false
Attachment #182484 - Attachment mime type: text/plain → application/xml
Depends on: 292089
Attached patch PatchSplinter Review
Simple solution. Bind the nsXFormsContextContainer to the model and set the
states whenever a context node is set.

(the patch depends on bug 292089)
Attachment #182485 - Flags: review?(smaug)
Status: NEW → ASSIGNED
Comment on attachment 182485 [details] [diff] [review]
Patch

This makes repeats again a bit slower... but r=me
Attachment #182485 - Flags: review?(smaug)
Attachment #182485 - Flags: review?(doronr)
Attachment #182485 - Flags: review+
Attachment #182485 - Flags: review?(doronr) → review+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: