title: How to display all errors for a form in a grails layout?
body: <p>I have the following code in my layout page:</p>
  
  <pre><code>&lt;g:hasErrors&gt;
      &lt;div class="alert alert-error"&gt;Please try submitting again&lt;/div&gt;
      &lt;g:eachError&gt;
          &lt;p&gt;${it.defaultMessage}&lt;/p&gt;
      &lt;/g:eachError&gt;
  &lt;/g:hasErrors&gt;
  </code></pre>
  
  <p>Basically when the form is submitted and if there are any errors then I'd like the errors to be shown. </p>
  
  <p>However, the errors are being shown like this:</p>
  
  <pre><code>Please try submitting again
  Property [{0}] of class [{1}] cannot be blank
  </code></pre>
  
  <p>Why aren't the messages being shown properly?</p>
  
  <p>This is what I have in my constraints:</p>
  
  <pre><code>static constraints = {
      color(nullable:  false, blank: false, size: 5..15)
  }
  </code></pre>