-
Apr 18th, 2012, 10:56 AM
#1
Error message handling in Grails Controller
Hello,
I would like to know the syntaxe for showing error messages when a field is not properly filled on my *.gsp
1- The examples I've seen on the internet impose that the constraints for the fields are defined inside the domain class but actually I dont want to use domain classes.
I want an external Spring application to deal with the Business Logic so I would prefer to define my constraints inside the grails controller or by checking what comes in the params and then do something in order to show the error message on the gsp if the gsp fields are not properly filled.
2- Also I would need that message to be shown according to the language so I know I have to define the error messages in all the languages in the properties files under i18n but then how do I do it?
Thanks a lot for your support
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules