Comment by [email protected]:
I meant if validation works if the bean to validate is an overlay type that
extends JavaScriptObject:
public class MyClass extends JavaScriptObject {
@Size(min=10)
public final native String getTitle() /*-{
return this["title"];
}-*/;
}
I'm getting a NoClassDefFoundError because the overlay can not be
initialized. That makes sense to me as "new" operations cannot be used with
overlay types.
I have also tryed creating a java interface implemented by the the overlay
and use the interface in the GwtValidator but that doesn't seem to work
neither.
For more information:
http://code.google.com/p/google-web-toolkit/wiki/BeanValidation
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors