Hi everybody!
I'm using a DynamicForm without a DataSource and I set its fields using the method editSelectedData() passing as parameter an instance of ListGridTable (without a DataSource too). I make a check to ensure that the selection in the table is not null.
When I try to get data from the form invoking the method getValuesAsRecord, the following exception is thrown:
java.lang.IllegalArgumentException: Unsupported type for attribute __ref : com.smartgwt.client.widgets.grid.ListGridRecord@1b1eb3a.
Here's the stack trace I get:
Any suggestion is welcome!
I'm using a DynamicForm without a DataSource and I set its fields using the method editSelectedData() passing as parameter an instance of ListGridTable (without a DataSource too). I make a check to ensure that the selection in the table is not null.
When I try to get data from the form invoking the method getValuesAsRecord, the following exception is thrown:
java.lang.IllegalArgumentException: Unsupported type for attribute __ref : com.smartgwt.client.widgets.grid.ListGridRecord@1b1eb3a.
Here's the stack trace I get:
Code:
java.lang.IllegalArgumentException: Unsupported type for attribute __ref : com.smartgwt.client.widgets.grid.ListGridRecord@1b1eb3a at com.smartgwt.client.util.JSOHelper.convertMapToJavascriptObject(JSOHelper.java:743) at com.smartgwt.client.widgets.form.DynamicForm.getValuesAsRecord(DynamicForm.java:2405) at it.txt.tipss.dataStream.ui.client.view.MessageBrokersView.getDataFromForm(MessageBrokersView.java:336) at it.txt.tipss.dataStream.ui.client.view.MessageBrokersView.updateData(MessageBrokersView.java:240) at it.txt.tipss.dataStream.ui.client.presenter.MessageBrokersPresenter$2.onClick(MessageBrokersPresenter.java:124) at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:96) at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:1) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178) at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:71) 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.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: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.invokeNativeObject(ModuleSpace.java:264) 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:188) at sun.reflect.GeneratedMethodAccessor22.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:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222) at java.lang.Thread.run(Unknown Source)
Comment