Null message in Grails

      No Comments on Null message in Grails

I had a domain object
[sourcecode language=’java’]
class Project{
String projectTitle
Rso rso
}

[/sourcecode]

Where Rso itself is another domain object.

Both projectTitle and rso could not be blank or null.
when I tried
project.projectTitle.blank message in messages.properties, it worked

but
project.rso.null was not working.
I was trying project.rso.null because the default message was mapped as default.null.message.

Then someone suggested me to use
project.rso.nullable and it worked.

Leave a Reply

Your email address will not be published. Required fields are marked *