Hello

I assume the proper way to manipulate data in views without a round-trip to
server* would be to call:
AsyncListViewAdapter<T>.updateViewData(int start, int length, List<T>
values);
But that does nothing when I try to *clear* the data:
AsyncListViewAdapter<T>.updateViewData(0, 0, new ArrayList<T>());

Looking at 
AbstractListViewAdapter<T>.updateViewData<http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/bikeshed/list/shared/AbstractListViewAdapter.java?r=8014#186>it
seems to me that the line #186 makes it impossible to assign empty
data
to any view. Is that correct behavior?
Or am I missing something please?

*) Like after you have created or deleted a record/item/entity on the server
and want to reflect such change in your view without reloading the data from
server.

Regards
  J. Záruba

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to