Details
Description
As of 1.4.4, disabled components can no longer submit forms (and rightly so):
BaseWicketTester, however, doesn't check whether a submitting component is enabled when it chooses a component as the source of a submit event, it only checks the visibility:
We have a TextField with an AjaxFormSubmitBehavior, and in the same form there's a disabled AjaxButton. In our test, we trigger a submit event from the TextField, but BaseWicketTester sets the disabled AjaxButton as the source, causing the check in Form.java to fail and throw an Exception.
In the browser everything works fine, since the AjaxButton's inputName=value is not added to the request parameters, as expected.