FormTester.setValue should throw exception if not FormComponent ---------------------------------------------------------------
Key: WICKET-2310 URL: https://issues.apache.org/jira/browse/WICKET-2310 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 1.4-RC4 Reporter: Martin Makundi Should throw exception if not formComponent: public void setValue(final String formComponentId, final String value) { checkClosed(); Component component = workingForm.get(formComponentId); if (component == null) { throw new IllegalArgumentException( "Unable to set value. Couldn't find component with name: " + formComponentId); } if (component instanceof IFormSubmittingComponent) { setFormSubmittingComponentValue((IFormSubmittingComponent)component, value); } else if (component instanceof FormComponent) { setFormComponentValue((FormComponent<?>)component, value); } } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.