[英]GWT RequestFactory + Validation Groups
Is there a way to use validation groups with request factory. 有没有一种方法可以将验证组与请求工厂一起使用。 If I execute a request all annotations are checked.
如果我执行请求,则会检查所有注释。 But sometimes I want to validate only a part of the constraints.
但是有时我只想验证部分约束。 Is this possible with GWT request factory version 2.6?
GWT请求工厂版本2.6是否可行?
提供一个自定义ServiceLayerDecorator
到RequestFactoryServlet
并覆盖ServiceLayerDecorator.validate(T domain)
以便您可以使用自定义组。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.