setRowData deals with the visible display of data. What you really want to
do in this case is use a ListDataProvider. You can call setList on your
ListDataProvider and it will handle the updating for you. Somewhat
counter-intuitively, you add the display to the list provider--not the other
way around.

So...

ListDataProvder<Foo> provider = new ListDataProvider<Foo>();
provider.addDataDisplay(myCellList);
provider.setList(list_with_5_elements);
....
provider.setList(list_with_2_elements);


On Thu, Oct 28, 2010 at 6:07 AM, Rafi <[email protected]> wrote:

> Hi!
>
> Either I do not get the idea or there is a little bug in CellList.
>
> Calling:
> setRowData(0, list_with_5_elements);
>
> Will show cell list with 5 elements.
>
> Then calling on the same CellList:
> setRowData(0, list_with_2_elements);
>
> Will show cell list containing 5(!) elements. First two items will be
> new one, other 3 items will be from old list. And I do not see any
> method to clear existing list. Setting an empty list as rowData of
> course does not do anything.
>
> Anyone knows is it designed behaviour or bug?
>
> Best regards,
> Rafal
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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