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

Key: GRAILS-560
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Marc Palmer
Reporter: Marc Palmer
Votes: 0
Watchers: 0
Operations

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

Size constraint and nullable: true cannot be used together

Created: 04/Jan/07 02:11 PM   Updated: 05/Jan/07 09:23 AM
Component/s: None
Affects Version/s: 0.4
Fix Version/s: 0.4

Time Tracking:
Not Specified


 Description  « Hide
If you try to use size constraint and nullable: true, every validation fails because size complains that null is not a valid value, no matter what range you supply.

You often want a value to be null or not-blank, and if not-blank, meeting a certain length range.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Marc Palmer - 04/Jan/07 02:17 PM
Email: true also refuses to accept null values even if nullable: true is set.