[
https://issues.apache.org/jira/browse/WICKET-2310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg resolved WICKET-2310.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.4-RC5
Assignee: Igor Vaynberg
> 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
> Assignee: Igor Vaynberg
> Fix For: 1.4-RC5
>
> Original Estimate: 0.08h
> Remaining Estimate: 0.08h
>
> 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.