Serialize data from ListDataProvider?
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?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home