Rodrigue Bouleau
unread,Jan 9, 2012, 9:29:09 AM1/9/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt-validation
Dear all,
In our current project, we use the GWT Validation 1.0 and GWT 2.2. I
will try to upgrade to GWT-Validation 2.0 (latest trunk) and GWT 2.4.
I try to use the DevMode with the new libraries and I have one big
issue:
- Problem with the Deferred Binding.
When we try to validate a property on one bean, the
ReflectorFactory.INSTANCE (in the CoreValidatorImpl file, line 109) is
the ReflectorFactory (from the folder com\em\validation\emul\com\em
\validation\client\reflector) and not the "Runtime" ReflectorFactory
(from the folder com\em\validation\client\reflector).
I try to find a solution to use properly the RuntimeReflectorFactory
when we use the DevMode but GWT uses the directive generate-with.
To be sure that I do not miss something during the upgrade, I try to
launch the GWT-Validation Sample and I have this issue (in DevMode):
[ERROR] [gwt_validation_sample] Unable to load module entry point
class com.em.validation.sample.client.Gwt_validation_sample (see
associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): 'console'
is undefined
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
248)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:
289)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:
107)
at
com.em.validation.client.reflector.AbstractCompiledReflectorFactory.showKeys(AbstractCompiledReflectorFactory.java)
at
com.em.validation.client.reflector.AbstractCompiledReflectorFactory.getReflector(AbstractCompiledReflectorFactory.java:
45)
at
com.em.validation.client.reflector.ReflectorFactory.getReflector(ReflectorFactory.java:
38)
at
com.em.validation.client.metadata.factory.DescriptorFactory.getBeanDescriptor(DescriptorFactory.java:
94)
at
com.em.validation.client.CoreValidatorImpl.getConstraintsForClass(CoreValidatorImpl.java:
300)
at
com.em.validation.client.ValidatorImpl.getConstraintsForClass(ValidatorImpl.java:
72)
at
com.em.validation.sample.client.ui.MainUi.layoutTree(MainUi.java:75)
at com.em.validation.sample.client.ui.MainUi.<init>(MainUi.java:
66)
at
com.em.validation.sample.client.Gwt_validation_sample.onModuleLoad(Gwt_validation_sample.java:
43)
I think it is the same problem described above.
Does anyone have the same problem ?
Environment:
* Windows
* Eclipse 3.6
* Latest GPE Version
* OS Language: French
Regards,
Rodrigue