I have some code I haven't touched in months. It worked in Dev and Production modes w/ GWT 2.3.0 and SGWTEE Eval 2.5. [Note: I originally posted as GWT 2.4.0 in error.]
Now w/ SGWT Power 3.0p (03/26/2012 Nightly) and GWT 2.4.0 , I have this issue:
When I click a ButtonItem "submitButton" set in a DynamicForm:
This now provokes an error in an IE Window.alert:
From the GWT Development Console, I see only a single [ERROR] line in the tab BuiltInDS(IE):
For testing, I simplified the ButtonItem's action code to only:
The System.out.println() statement does produce the output in the Eclipse log console. I.e., the ClickEvent is executing in spite of the alert.
Nothing leaps out at me from the SmartClient console.
Any advice appreciated, thanks.
Now w/ SGWT Power 3.0p (03/26/2012 Nightly) and GWT 2.4.0 , I have this issue:
When I click a ButtonItem "submitButton" set in a DynamicForm:
Code:
dynamicForm.setFields(new FormItem[] { other, formItems,andLastly,submitButton });
Code:
Uncaught exception escaped : java.lang.ClassCastException Cannot cast com.smartgwt.client.widgets.form.fields.events.ClickEvent to com.smartgwt.client.event.Cancellable See the Development console log for details. Register a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling
Code:
00:30:36.883 [ERROR] Uncaught exception escaped java.lang.ClassCastException: Cannot cast com.smartgwt.client.widgets.form.fields.events.ClickEvent to com.smartgwt.client.event.Cancellable at java.lang.Class.cast(Unknown Source) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:163) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) 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.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Unknown Source)
Code:
submitButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { System.out.println("KERBOPPLE"); } });
Nothing leaps out at me from the SmartClient console.
Any advice appreciated, thanks.
Comment