User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:220.127.116.11) Gecko/20070713 Firefox/18.104.22.168 Build Identifier: 0.8.0.3 XForms 1.1 supports a general-purpose `while` attribute on all actions. This attribute is an XPath expression that is evaluated and interpreted as a boolean value before the parent action is performed. The parent action is performed repeatedly until the this value evaluates to false. The reference to the specification (last call working draft as of this writing) is: http://www.w3.org/TR/xforms11/#action-iterated This bug report represents a request that this feature be implemented. Reproducible: Always
could you attach a testcase or two, please?
Created attachment 274191 [details] Test form demonstrating `while` functionality The `insert` action bound to the trigger in this test case should fire repeatedly until the indicated number of `people` elements have been added. Instead, it currently ignores the `while` attribute and fires just once, unconditionally.
Created attachment 284525 [details] Fix for bug in preceding test form The previous test form had a bug; this form fixes that bug.
Attachment #274191 - Attachment is obsolete: true
Created attachment 284527 [details] Correct version of the updated test form The previous fix was the wrong form. This form should be correct.
Attachment #284525 - Attachment is obsolete: true
Created attachment 289505 [details] Test of an infinite while loop In comment 19 to bug 388976, Olli suggested that I add functionality that deals with the case of an infinite loop. This attachment provides such a case to test that functionality.
Assignee: nobody → jlc6
This should be now fixed, see Bug 388976.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.