1
gwt에 대한 사용자 정의 ConstraintValidator를 작성하고 인터페이스 구현을 삽입하려고합니다.gWt의 사용자 정의 ConstraintValidator에 삽입
이도 가능합니까?
gwt에 대한 사용자 정의 ConstraintValidator를 작성하고 인터페이스 구현을 삽입하려고합니다.gWt의 사용자 정의 ConstraintValidator에 삽입
이도 가능합니까?
내 해결책은 다음과 같습니다.
생성 된 클래스에 gin 관리 클래스를 삽입 할 수 없다는 사실이 밝혀졌습니다.
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>