SmartGWT Extensions

106 views
Skip to first unread message

Thomas Holmes

unread,
Sep 24, 2009, 2:35:52 PM9/24/09
to Google Web Toolkit
I did use one example of a GWT-RPC datasource for SmartGWT, and I got
very, very close.
I can get the data from my spring beans, and I copied data to my DTO
objects.
But, the SmartGWT ListGrid shows 23 rows, and the right column names,
but no data is listed there.

So, I was re-reading the thread again, and I was looking at the
smartgwt-extensions ... but there is a bug in it, and I don't know how
I can tell the author that it is broken.

In "SimpleGwtRPCDSServiceAsync" the remove method:
public abstract void remove (SimpleGwtRPCDSRecord record,
AsyncCallback<Object> asyncCallback);
Breaks the code "SimpleGwtRPCDSService"
Changing the line to:
public abstract void remove (SimpleGwtRPCDSRecord record,
AsyncCallback<Void> asyncCallback);

This then breaks "SimpleGwtRPCDS" when we call:
service.remove (testRec, new AsyncCallback<Object> () {});

Anyone run into this before and how to fix it?

tall dave

unread,
Sep 24, 2009, 4:58:01 PM9/24/09
to Google Web Toolkit
might try the smartclient forums - http://forums.smartclient.com.
they have one specific to SmartGWT, believe the authors are pretty
active on it.

there's a sticky thread - GWT-RPC DataSource implementation with
sample code. using that i was able to build a GWT-RPC datasource
successfully.

Thomas Holmes

unread,
Sep 25, 2009, 2:10:32 PM9/25/09
to Google Web Toolkit
Yep, I tried those forums and have left many messages over there.

Some have gotten replies, and many have not ... that is VERY
frustrating.

So, I just figured someone over here might know something about the
smartgwt-extensions,
specifically the gwtrpcds (gwt rpc datasource).

On Sep 24, 4:58 pm, tall dave <da...@lorgeousdays.com> wrote:
> might try the smartclient forums -http://forums.smartclient.com.
> they have one specific toSmartGWT, believe the authors are pretty
> active on it.
>
> there's a sticky thread - GWT-RPC DataSource implementation with
> sample code.  using that i was able to build a GWT-RPC datasource
> successfully.
>
> On Sep 24, 1:35 pm, Thomas Holmes <thomas.j.hol...@gmail.com> wrote:
>
> > I did use one example of a GWT-RPC datasource forSmartGWT, and I got
> > very, very close.
> > I can get the data from my spring beans, and I copied data to my DTO
> > objects.
> > But, theSmartGWTListGrid shows 23 rows, and the right column names,

g p

unread,
Sep 25, 2009, 4:06:41 PM9/25/09
to google-we...@googlegroups.com
I know this might sound stupid, but always double check the names between the ListGridField and the DataSourceField . If the do not exactly match the data won't be pulled by the ListGrid. A good way to make sure your ListGrid works with your DataSource is to set the DataSource as clientOnly and use some test data. When you are ready with the ListGrid, switch it to server bound DataSource and debug your CRUD methods. 

Thomas Holmes

unread,
Sep 28, 2009, 9:42:50 AM9/28/09
to google-we...@googlegroups.com
Nope, it's not stupid, and it is a good suggestion.

The example I am using shows 'id' as integer, 'name' as String, and 'date' as Date.
So, I made those changes.

I did manage to fix this issue.   What I did was to look again at the sample and realized at the bottom of the DataSource code and noticed I need to have a "copyValues" method and "valueOf" method..

Ok, so here is a new issue you can help me with. 
I have an object that has some child data.  So, I presume that in my DTO, I want to have an ArrayList of that child-object.
Is that correct?

And thanks again for the help!
                                                       Tom
Reply all
Reply to author
Forward
0 new messages