Closed Bug 278962 Opened 21 years ago Closed 21 years ago

Nested repeats are not working

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allan, Assigned: allan)

References

()

Details

Attachments

(2 files)

Hmmm, I do not think I have ever tested that functionality... nevertheless they do not work :(
Attached file Testcase
Blocks: 278209
Status: NEW → ASSIGNED
Depends on: 278973
I've been investigating a bit, and it seems like DoneAddingChildren() is never called for the cloned <repeat>s. So if I remove the mDoneAddingChildren check in nsXFormsRefreshElement::Refresh(), nested repeats seems to work. Anybody got a clue to why DoneAddingChildren is never called on the cloned nodes?
You could use BeginAddingChildren() to set mDoneAddingChildren false and then in DoneAddingChildren() again to true. In the constructor mDoneAddingChildren should be set true.
(In reply to comment #4) > You could use BeginAddingChildren() to set mDoneAddingChildren false and > then in DoneAddingChildren() again to true. In the constructor mDoneAddingChildren > should be set true. Argh, of course. We have had that bug before somewhere else haven't we? Thanks smaug!
Attached patch Simple patchSplinter Review
Here's a simple patch doing what smaug suggested.
Attachment #171872 - Flags: review?(smaug)
BTW, we could consider letting nsXFormsControlStub implement this more generally, but let's do that on another bug.
Comment on attachment 171872 [details] [diff] [review] Simple patch This is ok, but needs also Bug 278973
Attachment #171872 - Flags: review?(smaug) → review+
checked in
Status: ASSIGNED → RESOLVED
Closed: 21 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: