Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9098231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:18:46+00:00 2026-06-17T00:18:46+00:00

I am working through the Grails in Action book and got to the part

  • 0

I am working through the Grails in Action book and got to the part constraints in Domain Classes to introduce validation.

When I go to the “Create” form that is produced from Grails, I just clicked the “Create” button without entering any data which prompted a “Please Fill Out This Field” message.

I went in to look at the markup within FireBug and Chrome Developer tools and I saw something interesting: there are no explicit script tags (except one at the bottom for a fadein/fadeout animation). Likewise, firebug shows no changes to the dom or html markup when the message is displayed.

Documentation says that messages are shown via i18n support from Spring… but my question is: how in the world is this accomplished. Ive studied the headers and the HTML markup and I just do not see anything that would prompt the message to be displayed either by Javascript or HTML.

How is this kind of thing accomplished in web pages?

(Clarification: Grails 2.2, Firebug within Firefox, Developer tools within Chrome. i.e.: two different browsers show the same message)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:18:47+00:00Added an answer on June 17, 2026 at 12:18 am

    The new templates in Grails 2.0+ use HTML5, so where possible client-side validation is used to avoid a server round-trip. I think it only works for blank:false though.

    You will see Grails validation messages for custom validations, and standard validations that have no HTML5 analogue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working through the Grails in Action book, and I'm stuck at that part
I'm working through the Grails In Action book and have noticed 2 instances that
Working through Pro ASP.NET MVC book and I got the following code snippet that
I'm working through Smith and Ledbrook's Grails in Action. The examples in the book
Working through the classes section in the O'reilley book and they seem to be
Just working through the Agile Web Development with Rails book and near the closing
Working through more book examples- this one is a partial poker program- This segment
Working through several layers of an MVC architecture designed program, I find that I
Working through the book Cocoa Programming for Mac OS X (third edition) from Aaron
I am currently reading through and working the examples in Getting Started with Grails,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.