Hi,
sorry for my bad english - but i have a very big problem.
Be sure your post includes:
1. the SmartGWT or SmartClient version and browser version(s) involved;
2.4, Firefox 3.6.13, GWT 2.1, Eclipse Helios with GWT Designer Plugin
4. if there is a JavaScript error, the stack trace logged in the Developer Console (from Internet Explorer if possible); and
5. sample code from VLayout Showcase
I downloaded the 2.4 from the website, the 2.2 works fine, but now I want to use the new version and even this example did not work...
Thank you for your help.
sorry for my bad english - but i have a very big problem.
Be sure your post includes:
1. the SmartGWT or SmartClient version and browser version(s) involved;
2.4, Firefox 3.6.13, GWT 2.1, Eclipse Helios with GWT Designer Plugin
4. if there is a JavaScript error, the stack trace logged in the Developer Console (from Internet Explorer if possible); and
00:00:15,891 [ERROR] Unable to load module entry point class com.ctk.verwaltung.client.Index (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (ReferenceError): $debox is not defined fileName: http://127.0.0.1:8888 lineNumber: 1376 stack: ()@http://127.0.0.1:8888:1376 @:0 ([object GWTJavaObject],262491)@http://127.0.0.1:8888/com.ctk.verwaltung.Index/hosted.html?com_ctk_verwaltung_Index:56 ()@http://127.0.0.1:8888:115 @:0 ([object GWTJavaObject],262689)@http://127.0.0.1:8888/com.ctk.verwaltung.Index/hosted.html?com_ctk_verwaltung_Index:56 ()@http://127.0.0.1:8888:5 connect("http://127.0.0.1:8888/Index.html?gwt.codesvr=127.0.0.1:9997","k*M(~:$C`J*J(f:I","127.0.0.1:9997","com.ctk.verwaltung.Index","2.1")@:0 ((void 0),"com.ctk.verwaltung.Index","http://127.0.0.1:8888/com.ctk.verwaltung.Index/",0)@http://127.0.0.1:8888/com.ctk.verwaltung.Index/hosted.html?com_ctk_verwaltung_Index:281 C()@http://127.0.0.1:8888/com.ctk.verwaltung.Index/com.ctk.verwaltung.Index.nocache.js:2 (-3)@http://127.0.0.1:8888/com.ctk.verwaltung.Index/com.ctk.verwaltung.Index.nocache.js:8 at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.smartgwt.client.widgets.Label.create(Label.java) at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356) at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073) at com.ctk.verwaltung.client.Index.onModuleLoad(Index.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Unknown Source)
com.google.gwt.core.client.JavaScriptException: (ReferenceError): $debox is not defined fileName: http://127.0.0.1:8888 lineNumber: 1376 stack: ()@http://127.0.0.1:8888:1376 @:0 ([object GWTJavaObject],262491)@http://127.0.0.1:8888/com.ctk.verwaltung.Index/hosted.html?com_ctk_verwaltung_Index:56 ()@http://127.0.0.1:8888:115 @:0 ([object GWTJavaObject],262689)@http://127.0.0.1:8888/com.ctk.verwaltung.Index/hosted.html?com_ctk_verwaltung_Index:56 ()@http://127.0.0.1:8888:5 connect("http://127.0.0.1:8888/Index.html?gwt.codesvr=127.0.0.1:9997","k*M(~:$C`J*J(f:I","127.0.0.1:9997","com.ctk.verwaltung.Index","2.1")@:0 ((void 0),"com.ctk.verwaltung.Index","http://127.0.0.1:8888/com.ctk.verwaltung.Index/",0)@http://127.0.0.1:8888/com.ctk.verwaltung.Index/hosted.html?com_ctk_verwaltung_Index:281 C()@http://127.0.0.1:8888/com.ctk.verwaltung.Index/com.ctk.verwaltung.Index.nocache.js:2 (-3)@http://127.0.0.1:8888/com.ctk.verwaltung.Index/com.ctk.verwaltung.Index.nocache.js:8 at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.smartgwt.client.widgets.Label.create(Label.java) at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356) at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073) at com.ctk.verwaltung.client.Index.onModuleLoad(Index.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Unknown Source)
Code:
package com.ctk.verwaltung.client; import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.types.Alignment; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.Label; import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.VLayout; /** * Entry point classes define <code>onModuleLoad()</code>. */ public class Index implements EntryPoint { public void onModuleLoad() { HLayout layout = new HLayout(); layout.setWidth100(); layout.setHeight100(); layout.setMembersMargin(20); VLayout vLayout = new VLayout(); vLayout.setShowEdges(true); vLayout.setWidth(150); vLayout.setMembersMargin(5); vLayout.setLayoutMargin(10); vLayout.addMember(new BlueBox(null, 50, "height 50")); vLayout.addMember(new BlueBox((String) null, "*", "height *")); vLayout.addMember(new BlueBox((String) null, "30%", "height 30%")); layout.addMember(vLayout); HLayout hLayout = new HLayout(); hLayout.setShowEdges(true); hLayout.setHeight(150); hLayout.setMembersMargin(5); hLayout.setLayoutMargin(10); hLayout.addMember(new BlueBox(50, (Integer) null, "width 50")); hLayout.addMember(new BlueBox("*", null, "width *")); hLayout.addMember(new BlueBox("30%", null, "width 30%")); layout.addMember(hLayout); layout.draw(); } class BlueBox extends Label { public BlueBox(String contents) { setAlign(Alignment.CENTER); setBorder("1px solid #808080"); setBackgroundColor("#C3D9FF"); setContents(contents); } public BlueBox(Integer width, Integer height, String contents) { this(contents); if (width != null) setWidth(width); if (height != null) setHeight(height); } public BlueBox(Integer width, String height, String contents) { this(contents); if (width != null) setWidth(width); if (height != null) setHeight(height); } public BlueBox(String width, String height, String contents) { this(contents); if (width != null) setWidth(width); if (height != null) setHeight(height); } } }
Thank you for your help.
Comment