开发者

Spring - remove a validation error?

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 an开发者_开发技巧ything 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
    }
}


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜