Description
Button.getForm() looks like
public Form<?> getForm()
{
try
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.