title: view doesn't detect error in passed in model object
body: <p>The code in controller is as follows:</p>
  
  <pre><code>for(o in options){
  
      if(o){
  
          if(!o.isInteger()){
  
              don.errors.reject("The value was not integer")
  
              render(view: "editdonation", model: [id:id, donation:don])
              return
  
          }
  
          don.addToDenominations(o.toInteger())
  
      }
  
  }
  </code></pre>
  
  <p>I intentionally pass in invalid input so that the don.errors.reject() code is executed. </p>
  
  <p>The editdonation.gsp has the following code to print the error in the donation object. </p>
  
  <pre><code>&lt;ul class="inline-errors" role="alert"&gt;
  
          &lt;g:hasErrors bean="${donation}"&gt;
  
                  &lt;div class="errors"&gt;
  
                           ok it has errors              
  
                  &lt;/div&gt;
  
           &lt;/g:hasErrors&gt;     
  
      &lt;/ul&gt;       
  </code></pre>
  
  <p>Why is the view not displaying the error? I appreciate any help!</p>