title: Play Framework Form validation error
body: <p>I'm currently looking at the Play! Framework for Java, and I've run into a pretty curious error:</p>
  
  <p>I've got a model with the following required fields (no other fields except an id)</p>
  
  <pre><code>@Lob
  @Constraints.Required
  private String content;
  
  @Constraints.Email
  @Constraints.Required
  private String email;
  
  @Constraints.Required
  private String title;
  </code></pre>
  
  <p>I've got the following methods in my Controller:</p>
  
  <pre><code>public static Result createEntry() {
      Form&lt;BlogEntry&gt; filledForm = blogEntryForm.bindFromRequest();
      if (filledForm.hasErrors()) {
          Logger.debug(filledForm.data().toString());
          Logger.debug(filledForm.errors().toString());
          return badRequest(newentry.render(filledForm));
      }
      BlogEntry entry = filledForm.get();
      entry.save();
      return redirect(routes.BlogController.index());
  }
  
  public static Result newEntry() {
      return ok(newentry.render(blogEntryForm));
  }
  </code></pre>
  
  <p>And the view looks like this:</p>
  
  <pre><code>@(blogform: Form[BlogEntry])
  @import helper._
  
  @main("New Blog Entry") {
      @form(routes.BlogController.createEntry()) {
  
          @if(blogform.hasErrors) {
              Errors in form
          }
          &lt;fieldset&gt;
              &lt;div&gt;
              @inputText(blogform("email"), '_label -&gt; "Email")
              &lt;/div&gt;
              &lt;div&gt;
              @inputText(blogform("title"), '_label -&gt; "Title")
              &lt;/div&gt;
              &lt;div&gt;
              @inputText(blogform("content"), '_label -&gt; "Content")
              &lt;/div&gt;
              &lt;button type="submit"&gt;Submit&lt;/button&gt;
          &lt;/fieldset&gt;
      }
  }
  </code></pre>
  
  <p>Now when I navigate to the form in my browser, and enter some data, then click "submit", I get redirected to the form, so the <code>badRequest</code> portion of the code was called. So I started logging the output of both form and validation errors, and this came out:</p>
  
  <p>[debug] application - {content=test, title=test, email=me@example.com}</p>
  
  <p>[debug] application - {content=[ValidationError(content,error.required,[])], title=[ValidationError(title,error.required,[])], email=[ValidationError(email,error.required,[])]}</p>
  
  <p>The data is definitely there, and when I'm redirected to the form after submitting, the fields are still filled with the correct data. Am I missing something obvious here?</p>