Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Cannot Reproduce
-
Affects Version/s: None
-
Fix Version/s: 1.2.3
-
Component/s: None
-
Labels:None
Description
When we have an integer field in a domain class, and that we're adding an inList constraint, an input type is generated in the view, instead of a select.
For instance, if you have a field
Integer numberOfProcessors
and you add in the constraints
numberOfProcessors(inList: [1,2,4,8])
an input type in used as the widget, instead of a select.
However, of course, when submitting the form, the number is validated appropriately. So, if I enter 3, I get a validation error.
The thing we just need here is a select widget instead of an input type.
I needed this feature also, attached you can find the modifications i have made to renderEditor.template file to make it work...