Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring - remove a validation error?

Tags:

java

spring

In the context of Spring Webflow 2.0.x......

Is it possible to REMOVE a validation error from within the Spring Errors object during validation? I cant see anything in the API.

i.e.

public class MyValidator implements Validator {
    .......
    public void validate(Object target, Errors errors) {
        MyForm form = (MyForm) target;
        errors.remove(someError); // pseudo code
    }
}
like image 830
Lawrence Tierney Avatar asked Feb 03 '26 14:02

Lawrence Tierney


1 Answers

Looking at the source, it doesn't seem like this is possible. Neither the Errors interface nor any of its implementations provide an API for that.

like image 164
skaffman Avatar answered Feb 05 '26 03:02

skaffman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!