__gwt_ObjectId fix for requests sent to the server. Patch by: amitmanjhi Review by: rjrjr git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@8632 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/requestfactory/client/impl/ClientRequestHelper.java b/user/src/com/google/gwt/requestfactory/client/impl/ClientRequestHelper.java index 0ee5ffc..49c1823 100644 --- a/user/src/com/google/gwt/requestfactory/client/impl/ClientRequestHelper.java +++ b/user/src/com/google/gwt/requestfactory/client/impl/ClientRequestHelper.java
@@ -47,7 +47,11 @@ }-*/; private native String toJsonString()/*-{ - return $wnd.JSON.stringify(this); + var gwt = this.__gwt_ObjectId; + delete this.__gwt_ObjectId; + var rtn = $wnd.JSON.stringify(this); + this.__gwt_ObjectId = gwt; + return rtn; }-*/; }
diff --git a/user/src/com/google/gwt/requestfactory/client/impl/RecordJsoImpl.java b/user/src/com/google/gwt/requestfactory/client/impl/RecordJsoImpl.java index 4209d0a..a41f5c0 100644 --- a/user/src/com/google/gwt/requestfactory/client/impl/RecordJsoImpl.java +++ b/user/src/com/google/gwt/requestfactory/client/impl/RecordJsoImpl.java
@@ -359,11 +359,14 @@ delete this.__rf; var vs = this.__vs; delete this.__vs; + var gwt = this.__gwt_ObjectId; + delete this.__gwt_ObjectId; // TODO verify that the stringify() from json2.js works on IE var rtn = $wnd.JSON.stringify(this); this.__key = key; this.__rf = rf; this.__vs = vs; + this.__gwt_ObjectId = gwt; return rtn; }-*/;