SmartGWT 2.2
browsers = IE7, Chrome 6.0
I am reproducing on my PC the excellent demo at http://uptick.com.au/content/getting-started-smartgwt
which I imagine is known to many other users
All was going well up to when I inserted the menu layout (http://uptick.com.au/content/build-user-interface)
The instruction
in the entry point method causes
the last instruction in the entry point method to generate an error (see below).
If I comment out
no error is generated (but of course the menu is not shown).
JavaScript error in IE7
JavaScript error in Chrome 6.0
Best regards
browsers = IE7, Chrome 6.0
I am reproducing on my PC the excellent demo at http://uptick.com.au/content/getting-started-smartgwt
which I imagine is known to many other users
All was going well up to when I inserted the menu layout (http://uptick.com.au/content/build-user-interface)
The instruction
Code:
// add the Application Menu to the nested layout container vLayout.addMember(new ApplicationMenu());
Code:
mainLayout.draw() ;
If I comment out
Code:
// add the Application Menu to the nested layout container vLayout.addMember(new ApplicationMenu());
JavaScript error in IE7
Code:
10:42:45.589 [ERROR] [smartgwtdemo] 10:42:45.589:WARN:Log:Error: ''this.menus.length' is null or not an object' in http://localhost:8888/SmartGWTDemo.html?gwt.codesvr=136.173.25.153:9997 at line 3234 MenuBar.setButtons(_1=>undef) Toolbar.draw(_1=>undef, _2=>undef, _3=>undef, _4=>undef) Layout.layoutChildren(_1=>"initial draw", _2=>undef, _3=>undef) Layout.drawChildren() Canvas.draw(_1=>undef) ** recursed on Layout.layoutChildren com.smartgwt.client.core.JsObject$SGWT_WARN: 10:42:45.589:WARN:Log:Error: ''this.menus.length' is null or not an object' in http://localhost:8888/SmartGWTDemo.html?gwt.codesvr=136.173.25.153:9997 at line 3234 MenuBar.setButtons(_1=>undef) Toolbar.draw(_1=>undef, _2=>undef, _3=>undef, _4=>undef) Layout.layoutChildren(_1=>"initial draw", _2=>undef, _3=>undef) Layout.drawChildren() Canvas.draw(_1=>undef) ** recursed on Layout.layoutChildren at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) at com.smartgwt.client.widgets.BaseWidget.draw(BaseWidget.java) at smartgwtdemo.client.SmartGWTDemo.onModuleLoad(SmartGWTDemo.java:114) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:369) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222) at java.lang.Thread.run(Thread.java:619)
JavaScript error in Chrome 6.0
Code:
11:26:37.917 [ERROR] [smartgwtdemo] Unable to load module entry point class smartgwtdemo.client.SmartGWTDemo (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'length' of undefined stack: TypeError: Cannot read property 'length' of undefined at Object.isc_MenuBar_setButtons [as setButtons] (http://localhost:8888/smartgwtdemo/sc/modules/ISC_Grids.js:3233:85) at Object.isc_Toolbar_draw [as __draw] (http://localhost:8888/smartgwtdemo/sc/modules/ISC_Foundation.js:733:1307) at Object.draw (unknown source) at Object.isc_Layout_layoutChildren [as layoutChildren] (http://localhost:8888/smartgwtdemo/sc/modules/ISC_Foundation.js:437:179) at Object.isc_Layout_drawChildren [as drawChildren] (http://localhost:8888/smartgwtdemo/sc/modules/ISC_Foundation.js:339:100) at Object.isc_Canvas_draw [as __draw] (http://localhost:8888/smartgwtdemo/sc/modules/ISC_Core.js:1889:244) at Object.draw (unknown source) at Object.isc_Layout_layoutChildren [as layoutChildren] (http://localhost:8888/smartgwtdemo/sc/modules/ISC_Foundation.js:437:179) at Object.isc_Layout_drawChildren [as drawChildren] (http://localhost:8888/smartgwtdemo/sc/modules/ISC_Foundation.js:339:100) at Object.isc_Canvas_draw [as __draw] (http://localhost:8888/smartgwtdemo/sc/modules/ISC_Core.js:1889:244) type: non_object_property_load arguments: length, __gwt_ObjectId: 255 at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) at com.smartgwt.client.widgets.BaseWidget.draw(BaseWidget.java) at smartgwtdemo.client.SmartGWTDemo.onModuleLoad(SmartGWTDemo.java:114) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:369) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222) at java.lang.Thread.run(Thread.java:619)
Best regards
Comment