playframework/Play20 — pull request #228 by julienrf (2012-04-11 22:08:00+00:00)
Title: Add more methods in the Form APIs to deal with errors

Add the following methods to the Scala `Form[T]` API:

```scala
def withError(error: FormError): Form[T]
def withError(key: String, message: String, args: Any*): Form[T]
def withGlobalError(message: String, args: Any*): Form[T]
def discardingErrors: Form[T]
```

Add the following method to the Java `Form` API:

```java
public void discardErrors();
```

(The equivalent of Scala’s `withError` already exists in Java API under the name “`reject`”)