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 > > On Wed, Jan 19, 2011 at 6:37 PM, Javier <javierferre...@gmail.com> wrote: > > Hi, > > > My app is using overlay types with JSON received from server. In the > > view I'm pushing the list of overlay types into a cell table: > > How do you get them from the server? RPC, RequestFactory, or JsonRequest? > > > > > public class JsTask extends JavaScriptObject {} > > > taskTable = new CellTable<JsTask>(); > > taskTable.setRowData(0, tasks); > > > For my surprise I have found that the widget is adding an extra > > property to the JavaScriptObject containing it's row index in the > > table. So, my overlay type that looked like this: > > > {"_id":"4039344d00005fd600000017", "title":"Nuevo titulillo", > > "version":0} > > Does it look like this on the server or on the client after the request from > the server? > > > > > Now looks: > > > {"_id":"4039344d00005fd600000017", "title":"Nuevo titulillo", > > "version":0, "$H":6} > > I don't think this is a nice behaviour. In my particular case the > > overlay is a domain object so it should not have unexpected > > properties. > > > Is this behaviour documented somewhere? What do you think is the best > > way to solve this issue? Am I forced to "clone" all my domain objects > > before using them in my views? > > > Many thanks > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > > . > > 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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.