Form.delegateSubmit: invoke onSubmit() of nested Forms before onSubmit() of 
enclosing Form
------------------------------------------------------------------------------------------

                 Key: WICKET-3003
                 URL: https://issues.apache.org/jira/browse/WICKET-3003
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.4.10
            Reporter: Florian Wunderlich
            Priority: Minor


As has been discussed on the mailing list:
http://mail-archives.apache.org/mod_mbox/wicket-dev/201008.mbox/<[email protected]>

It can be assumed that an enclosing Form in some way or another may depend on 
the state of an enclosed Form, but that an enclosed Form should never depend on 
the state of its enclosing Form.

Therefore, Form.delegateSubmit should invoke onSubmit() of the nested Forms, 
depth first, before invoking onSubmit() of the enclosing Form. At the moment, 
this is the other way around.

The attached patch rectifies this situation. Please review and apply if so 
desired.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to