2012-12-03 26 views

回答

0

这是我的解决方案。

原来你不能将一个杜松子酒管理类注入到生成的类中。

我解决它是使用下面的链接信息的方式:

https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/rN476RgdGAM

,不得不写/自GWT延长ValidatorGenerator。

工作

Lttle位

<generate-with 
    class=".... CustomValidatorGenerator"> 
    <any> 
     <when-type-assignable class="javax.validation.Validator" /> 
     <when-type-assignable 
      class="com.google.gwt.validation.client.impl.GwtSpecificValidator" /> 
    </any> 
</generate-with>