PDA

View Full Version : GXT with current GWT Trunk and OOPHM



mgoerdes
5 Jun 2009, 6:51 AM
Hi all,

today I tried to use the current GWT Trunk with GXT because I wanted to try, if the OOPHM works with our application. Unfortunately I got an error (see below)

Did anyone tried this as well, and if so, what is your experience with that?

Regards


00:00:54,250 [ERROR] Failed to create an instance of 'com.extjs.gxt.ui.client.image.XImages' via deferred binding com.google.gwt.core.client.JavaScriptException: (ReferenceError): $moduleBase is not defined fileName: http://localhost:8888 lineNumber: 24 stack: ()@http://localhost:8888:24 connect("10.10.10.10:9997","test",[object XPCCrossOriginWrapper])@:0 ((void 0),"test","http://localhost:8888/test/")@http://localhost:8888/test.html?gwt.hosted=10.10.10.10:9997:185 maybeStartModule()@http://localhost:8888/test/test.nocache.js:40 onBodyDone()@http://localhost:8888/test/test.nocache.js:333 ([object Event])@http://localhost:8888/test/test.nocache.js:345 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.createJavaScriptException(ModuleSpace.java:62) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:101) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:121) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:501) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:273) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.getModuleBaseURL(Impl.java) at com.google.gwt.core.client.GWT.getModuleBaseURL(GWT.java:121) at com.extjs.gxt.ui.client.image.XImages_generatedBundle.<clinit>(transient source for com.extjs.gxt.ui.client.image.XImages_generatedBundle:8) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:570) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:407) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39) at com.google.gwt.core.client.GWT.create(GWT.java:97) at com.extjs.gxt.ui.client.GXT.<clinit>(GXT.java:34) at com.extjs.gxt.ui.client.widget.Component.<clinit>(Component.java:199) at com.bearingpoint.davinci.frontend.gwt.test.client.ReportingTest.<init>(ReportingTest.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:414) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:359) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:169) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:149) at java.lang.Thread.run(Unknown Source)

sven
5 Jun 2009, 7:02 AM
GWT trunk is GWT 2.0. GWT 2.0 is not a minor release. So you should not expect that things work together without updates. Also gwt 2.0 is in a really early stage.

mgoerdes
5 Jun 2009, 7:41 AM
Yes, thats true. My hope was, that the trunk is stable, because Google Wave is using this as well. I saw some presentation from the Google IO

http://code.google.com/events/io/sessions/GoogleWavePoweredByGWT.html

and the OOPHM as well as some other features (Async code loading, UIBinder) look very interesting. So if there is somebody who tried it, I would like to hear about the experience.

Google plans to release GWT 2.0 in Q3. Are you planning to be compatible to this version in Q3 or Q4 as well?

brendand
10 Jun 2009, 6:21 PM
Here are some interesting links on GWT 2.0

http://dl.google.com/io/2009/pres/W_1115_GWTCanDoWhat.pdf

http://google-code-updates.blogspot.com/2009/06/google-web-toolkit-at-google-io.html

I wonder if GWT 2.0 support be a point release or major version to Ext GWT?

sven
11 Jun 2009, 4:11 PM
3 classes needed a little update to work with the current GWT trunk. Update will be in SVN soon. OOMPH is working with GXT2.

sven
11 Jun 2009, 4:33 PM
Change is in SVN.

mgoerdes
12 Jun 2009, 1:00 AM
Perfect, it seems to work. Some rendering issues, but thats ok for the moment. Is this part of M3 or post M3?

Thanks a lot.

sven
12 Jun 2009, 2:55 AM
Post M3. I dont have any rendering issues.

mgoerdes
12 Jun 2009, 2:57 AM
Rendering issues where bugs in my code. GWT 2.0 in OOPHM works. Thanks a lot.

sven
12 Jun 2009, 2:59 AM
Not only with oophm. It also works with the new compiler options to make the generated javascript even faster.