Hello,
I am using SmartClient/SmartGWT Framework (SNAPSHOT_v9.1d_2013-12-30/Pro Deployment 2013-12-30).
I set the value of an IntegerItem.
Then, I want to assign the current value of the IntegerItem by means of getValueAsInteger to an Integer-object.
But during execution of getValueAsInteger an exception occurs:
Caused by: com.google.gwt.dev.shell.HostedModeException: invoke arguments: JS value of type string, expected int
at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:65)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.smartgwt.client.widgets.form.fields.IntegerItem.getValueAsInteger(IntegerItem.java)
What am I doing wrong?
Andreas
I am using SmartClient/SmartGWT Framework (SNAPSHOT_v9.1d_2013-12-30/Pro Deployment 2013-12-30).
I set the value of an IntegerItem.
Then, I want to assign the current value of the IntegerItem by means of getValueAsInteger to an Integer-object.
But during execution of getValueAsInteger an exception occurs:
Caused by: com.google.gwt.dev.shell.HostedModeException: invoke arguments: JS value of type string, expected int
at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:65)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.smartgwt.client.widgets.form.fields.IntegerItem.getValueAsInteger(IntegerItem.java)
What am I doing wrong?
Andreas
Comment