Hi,
my LiveGrid seems to be almost working. But when a row ist selected and than I select an other row the follow error message appears in the eclipse console:
Code:
com.google.gwt.dev.shell.HostedModeException: Calling method 'onRowDeselect': JS value of type string, expected int
at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:267)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:103)
at com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:57)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:119)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:594)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:358)
The grid shows the header data of mails. Here's the code:
Code:
this.messageProxy = new HttpProxy( GWT.getModuleBaseURL() + "retrieveMessages", Connection.POST );
this.messageReader = new BufferedJsonReader( "response.value.items", RECORD_DEF );
this.messageReader.setId( GWTMailConstants.FIELD_ID );
this.messageReader.setVersionProperty( "response.value.version" );
this.messageReader.setTotalProperty( "response.value.total_count" );
this.messageStore = new BufferedStore( this.messageProxy, this.messageReader );
this.messageStore.setAutoLoad( true );
this.messageStore.setBufferSize( 50 );
BufferedRowSelectionModel brsm = new BufferedRowSelectionModel();
this.gridPanel = new GridPanel();
this.gridPanel.setColumnModel( columnModel );
this.gridPanel.setSelectionModel( brsm );
this.gridPanel.setStripeRows( true );
this.gridPanel.getSelectionModel().addListener( new MessageGridRowSelectionListener() );
this.gridPanel.setLoadMask( true );
this.gridPanel.setStore( this.messageStore );
BufferedGridView view = new BufferedGridView();
view.setLoadMask( "Wait" );
view.setNearLimit( 50 );
BufferedGridToolbar toolbar = new BufferedGridToolbar( view );
toolbar.setDisplayInfo( true );
this.gridPanel.setBottomToolbar( toolbar );
this.gridPanel.setView( view );
this.gridPanel.getView().setAutoFill( true );
this.gridPanel.getView().setForceFit( true );
add( this.gridPanel );
I compared that with the example code a hundred times. I can't find the problem. Can anybody help?
Thanks,
Jürgen