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.