Hmmm, I do not think I have ever tested that functionality... nevertheless they do not work :(
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!
Created attachment 171872 [details] [diff] [review] Simple patch Here's a simple patch doing what smaug suggested.
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+
Status: ASSIGNED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.