Would it be possible for the FormTester setValue/selectMultiple etc
methods to throw a WicketRuntimeException whenever the provided id
doesn't exist?
The setValue method's source happily allows invalid formComponentId
since there's no null check, only instanceof's:
Component component = workingForm.get(formComponentId);
if (component instanceof IFormSubmittingComponent)
{
setFormSubmittingComponentValue((IFormSubmittingComponent)component, value);
}
else if (component instanceof FormComponent)
{
setFormComponentValue((FormComponent)component, value);
}
I assume that when a call to formTester.setValue is succesful the value
is set in the model but apparently it is not.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]