Hello everybody,
I want to use a RPC datasource (extends GwtRpcDataSource) for a ListGrid and a TileGrid. In the executeFetch() method I set an array of Records in response.setData(records). The records are of the type ListGridRecord.
If I open the TileGrid in the GUI I get a ClassCastException:
If I use the type Record instead of ListGridRecord, I get an Exception in the Listgrid.
If I use the type TileRecord, the ListGrid doesn't show anything.
Any suggestions?
Thanks
I want to use a RPC datasource (extends GwtRpcDataSource) for a ListGrid and a TileGrid. In the executeFetch() method I set an array of Records in response.setData(records). The records are of the type ListGridRecord.
If I open the TileGrid in the GUI I get a ClassCastException:
Code:
Uncaught JavaScript exception [java.lang.ClassCastException: de.dig.cms.gui.client.component.media.MediaTileRecord cannot be cast to com.smartgwt.client.widgets.tile.TileRecord [ERROR] at com.smartgwt.client.widgets.tile.TileRecord.getOrCreateRef(TileRecord.java:69) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [ERROR] at java.lang.reflect.Method.invoke(Method.java:597) [ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) [ERROR] at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126) [ERROR] at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155) [ERROR] at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294) [ERROR] at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194) [ERROR] at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117) [ERROR] at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) [ERROR] at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) [ERROR] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) [ERROR] at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:235) [ERROR] at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:558) [ERROR] at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) [ERROR] at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)] in http://localhost:8080/org.apache.sling.launchpad.webapp-5-incubator/cms/hosted.html?cms, line 6
If I use the type TileRecord, the ListGrid doesn't show anything.
Any suggestions?
Thanks
Comment