Post new topic Reply to topic  [ 6 posts ] 

Board index : GWT-Ext User Extensions

Author Message
 Post subject: Problems with LiveGrid: Calling method 'onRowDeselect'
PostPosted: Sun Jun 08, 2008 8:29 am 
Offline

Joined: Thu Mar 13, 2008 5:38 pm
Posts: 28
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


Back to top
 Profile  
 
 Post subject: Re: Problems with LiveGrid: Calling method 'onRowDeselect'
PostPosted: Tue Sep 23, 2008 10:25 am 
Offline

Joined: Tue Sep 23, 2008 10:24 am
Posts: 1
I have exactly the same problem. Have even tried to download the latest GWT sources from the GWT Subversion.

HELP :(


Back to top
 Profile  
 
 Post subject: Re: Problems with LiveGrid: Calling method 'onRowDeselect'
PostPosted: Tue Sep 30, 2008 2:43 am 
Offline
User avatar

Joined: Thu Feb 07, 2008 5:37 pm
Posts: 582
Location: San Francisco, CA.
Please enter an issue for this...thx.


Back to top
 Profile  
 
 Post subject: Re: Problems with LiveGrid: Calling method 'onRowDeselect'
PostPosted: Sat Nov 29, 2008 8:53 am 
Offline

Joined: Sat Nov 29, 2008 8:50 am
Posts: 1
Did somebody find a workaround for this issue?


Back to top
 Profile  
 
 Post subject: Re: Problems with LiveGrid: Calling method 'onRowDeselect'
PostPosted: Wed Jan 28, 2009 10:16 am 
Offline

Joined: Sat Aug 30, 2008 5:35 pm
Posts: 12
I was able to get rid of this error by removing any listeners on the Row Selection Model.


Back to top
 Profile  
 
 Post subject: Re: Problems with LiveGrid: Calling method 'onRowDeselect'
PostPosted: Tue Mar 24, 2009 6:21 pm 
Offline

Joined: Thu Mar 13, 2008 5:38 pm
Posts: 28
Although I added no listener to the selection model I still get this error.
What do you mean with "remove all listeners"? The BufferedRowSelectionModel has no remove method.


Back to top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Board index : GWT-Ext User Extensions


Who is online

Users browsing this forum: MSN [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Style by Midnight Phoenix & N.Design Studio
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.