2012-12-03 52 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> 
相關問題