Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.3.0-beta1
-
None
Description
See this thread: <http://www.nabble.com/FormTester%2C-DropDownChoice---Validation-tf3884382.html#a11009710>.
The FormTester constructor contains a code block like:
-----------------------------------------------------------------------------------------------------------------------
else if ((formComponent instanceof DropDownChoice) || (formComponent instanceof RadioChoice) || (formComponent instanceof CheckBox)) {
setFormComponentValue(formComponent, formComponent.getValue());
}
This means that a DropDownChoice with a null model (i.e.. no selection) gets a post value of "-1", instead of "" (empty string).
This in turn means that it incorrectly passes a "required" validation check.
Attachments
Issue Links
- is related to
-
WICKET-933 Look into removing AbstractSingleSelectChoice.NO_SELECTION_VALUE
- Resolved