Jianfeng
2009-06-18 09:08:41 UTC
Hi all,
I have a boolean field in the domain class.
class A {
boolean fieldA
static constraints = {
fieldA(nullable: true)
}
}
The purpose that I set nullable constraint to this field is to make sure the
user has to select one of the boolean values.
During the application start up, I got the warning in the log as below:
WARN [util.GrailsUtil] [WARNING] Property [fieldA] of domain class A has
type [boolean] and doesn't support constraint [nullable]. This constraint
will not be checked during validation.
Does anybody know how to do boolean value constraint?
Thanks
Jet
I have a boolean field in the domain class.
class A {
boolean fieldA
static constraints = {
fieldA(nullable: true)
}
}
The purpose that I set nullable constraint to this field is to make sure the
user has to select one of the boolean values.
During the application start up, I got the warning in the log as below:
WARN [util.GrailsUtil] [WARNING] Property [fieldA] of domain class A has
type [boolean] and doesn't support constraint [nullable]. This constraint
will not be checked during validation.
Does anybody know how to do boolean value constraint?
Thanks
Jet
--
View this message in context: http://www.nabble.com/How-to-validate-boolean-field-in-the-constraints.-tp24089103p24089103.html
Sent from the grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
View this message in context: http://www.nabble.com/How-to-validate-boolean-field-in-the-constraints.-tp24089103p24089103.html
Sent from the grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email