title: Play Framework: How do I validate for empty text box
body: <p>I am working on Play Framework 2 for Java and I was trying to validate the text box in my form so I used <code>@Required</code>, It was working fine if we are not entering anything inside the text box but when we are typing <code>spaces</code> on text box then it fails. In short we can say its not trimming the text box value. I also tried <code>@NotNull</code> but it was also not working any more. Please help to out of it.</p>