Serialize data from ListDataProvider?

28 views
Skip to first unread message

membersound

unread,
Feb 15, 2013, 10:25:38 AM2/15/13
to google-we...@googlegroups.com
Hi,

I just tried serializing data using ListDataProvider.getData();
Which returned a RPC exception, because this would return a ListWrapper implements List<T>.

And as the gwt ListWrapper does not implement Serializable itselft, this fails.

Thus, what is best extracting the data to a serializable list? Create a new ArrayList > addAll() > and then serialize?

List<Foo> serializeList = new ArrayList<Foo>().addAll(listDataProvider.getData());

Could I do better?

Jens

unread,
Feb 15, 2013, 12:35:27 PM2/15/13
to google-we...@googlegroups.com

Could I do better?

I don't think so. Well, you could always write your own ListDataProvider and/or file an issue in the meantime.

-- J.
Reply all
Reply to author
Forward
0 new messages