Hi, I think I found a bug (and a fix) for a problem. When using an AjaxSubmitLink to submit a form, the form can't find the submitting component (the method Form.findSubmittingButton() returns null). This is because in AjaxFormSubmitBehavior the name of the submit link isn't encoded in the javascript call 'wicketSubmitFormById'. Therefore Form.findSubmittingButton() can't find the submitting component and it just processes the form. So setting e.g. defaultFormProcessing to false won't have any effect.
The solution is simple. In AjaxFormSubmitBehavior, on line 117 there is a check to see if the component is an instance of Button, but it should check if the component is an instance of IFormSubmittingComponent (and on line 119 it shouldn't cast to FormComponent but also to IFormSubmittingComponent). Do I need to create a JIRA issue for this small fix?? Thanks, Bart.
