History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-3077
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Graeme Rocher
Reporter: ilo som
Votes: 3
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Grails

Default databinding for empty Strings to Enums

Created: 08/Jun/08 10:38 AM   Updated: 08/Jun/08 10:38 AM
Component/s: Controllers, Scaffolding
Affects Version/s: 1.0.3
Fix Version/s: 1.0.4

Time Tracking:
Not Specified


 Description  « Hide
  • DomainObject: Set the constraint "nullable:true" to your enum property
  • Use scaffolding to generate standard controller/view for this domain object.
  • Use the 'create' view.

When you select an empty value for the enum property you get an
"Failed to convert property value of type [java.lang.String] to
required type .[enumType] .... no matching editors or conversion
strategy found"

This should be handled by the scaffolded controller/view.

Does a quick workaround exists for this in 1.0.3?



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.