Buttom subclasses getForm with a different sematic
--------------------------------------------------

                 Key: WICKET-2018
                 URL: https://issues.apache.org/jira/browse/WICKET-2018
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.4-RC1
            Reporter: Juergen Donnerstag


Button.getForm() looks like
        public Form<?> getForm()
        {
                try
                {
                        return super.getForm();
                }
                catch (WicketRuntimeException wre)
                {
                        // ignore this and return null. 
(Form.findSubmittingComponent expects this)
                }
                return null;
        }

Obviously just because Form.findSubmittingComponent expects it. Instead of 
having different semantics per FormComponent.getForm, findSubmittingComponent 
should handle it. This is a good case for making a method final.

-- 
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