Null message in Grails
I had a domain object
class Project{
String projectTitle
Rso rso
}
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.
August 18, 2009 Posted by Paras | Grails, Groovy | Grails Null Message, Null Message properties in Grails | Leave a Comment
About Me
Hello. Thanks for visiting my blog. I am Paras Jain. I am a Riveter – team member of Rivet Logic Corporation in Reston, Virginia, USA. I am working as Senior Software Engineer. Currently most of my work involves implementing solutions involving Liferay and Alfresco. I have experience in Grails, Spring, Struts, Hibernate, JSF, JBoss Seam and many others. I am also technical owner of few websites developed in WordPress, Drupal and Prestashop. I am a Sun Certified Java Professional. You can reach me at my email id http://scr.im/parasjain01 or http://scr.im/parasjain
Categories
-
Blog Stats
- 206,545 hits
Category Cloud
-
Recent Comments
- Moayad Abu Jaber on org.hibernate.QueryParameterException: could not locate named parameter
- hadi on How to configure JCaptcha with your Spring App
- shasisekar on Hibernate Error – Identifier of an instance altered from 1 to 1
- Paras on org.hibernate.TransientObjectException: object references an unsaved transient instance – save the transient instance before flushing:
- Waqas Ahmed on org.hibernate.TransientObjectException: object references an unsaved transient instance – save the transient instance before flushing: