Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.4
-
None
Description
A recent change to the Select component enables, by default, the validation of a submitted value to a Select against its SelectModel.
This works fine in most cases ... however, when the SelectModel is created from a String, the values are also Strings even if the property edited by the Select is a non-String type (relying, again, on TypeCoercer to convert). This causes a failure in the typical case where the string is a list of number, say "1,5,10"; the provided SelectModel provides the values as strings, e.g., "10", which does match against even a valid submitted value, since the ValueEncoder will have converted the value to a number before the search.