The Artima Developer Community
Sponsored Link

Web Buzz Forum
Get Domain Class's Error Message in Grails Controller

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chee Seng Chua

Posts: 62
Nickname: quai83
Registered: Nov, 2006

Chee Seng Chua is Senior Application Developer for KZEN Solutions Berhad
Get Domain Class's Error Message in Grails Controller Posted: Nov 3, 2010 5:54 AM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Chee Seng Chua.
Original Post: Get Domain Class's Error Message in Grails Controller
Feed Title: Chee Seng Tech Blog
Feed URL: http://chuacheeseng.blogspot.com/atom.xml
Feed Description: When you think you are superior, you are being an idiot...
Latest Web Buzz Posts
Latest Web Buzz Posts by Chee Seng Chua
Latest Posts From Chee Seng Tech Blog

Advertisement
The following code snippet can be used to get domain class's error messages in Grails (1.2.2) Controller:-


def errMsgList = domainClassObj.errors.allErrors.collect{g.message([error : it])}

Read: Get Domain Class's Error Message in Grails Controller

Topic: Handling ActionScript Associative Arrays Previous Topic   Next Topic Topic: Free Alternative To TrueCrypt For Windows 7 & XP[ Disk Encryption Software ]

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use