Thanks for answering John,
I use JsonRequest to get the data from the server and store it in a
List.
I'm pretty sure the data is modified in the cell table. In this code
from my view I print the data before and after pushing it into de cell
table:
@UiField(provided = true)
CellTable<JsTask> taskTable;
public void setTasks(List<JsTask> tasks) {
printTasks("BEFORE", tasks);
taskTable.setRowData(0, tasks);
printTasks("AFTER", tasks);
}
private void printTasks(String key, List<JsTask> tasks) {
for(JsTask task : tasks) {
GWT.log(key + ": " + new JSONObject(task).toString());
}
}
And the output is:
11:10:51.658 [INFO] [noah] BEFORE: {"_id":"c109384d00005fd600000017",
"title":"This is a task", "version":0}
11:10:51.667 [INFO] [noah] BEFORE: {"_id":"c009384d00005fd600000017",
"title":"This is another task", "version":0}
11:10:51.689 [INFO] [noah] AFTER: {"_id":"c109384d00005fd600000017",
"title":"This is a task", "version":0, "$H":1}
11:10:51.696 [INFO] [noah] AFTER: {"_id":"c009384d00005fd600000017",
"title":"This is another task", "version":0, "$H":2}
where the widget is adding those $H properties.
On 20 ene, 04:35, John LaBanca <
jlaba...@google.com> wrote:
> CellTable doesn't modify the original data, so this is either related to RPC
> or to our List implementation.
>
> Thanks,
> John LaBanca
>
jlaba...@google.com
> >
google-web-tool...@googlegroups.com<
google-web-toolkit%2Bunsu...@googlegroups.com>
> > .