| commit | 49eefec24ec8a0d688fe98c7c0a4685cc5f7ec7c | [log] [tgz] |
|---|---|---|
| author | amitmanjhi@google.com <amitmanjhi@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Tue Aug 24 01:39:19 2010 +0000 |
| committer | amitmanjhi@google.com <amitmanjhi@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Tue Aug 24 01:39:19 2010 +0000 |
| tree | 0f9dc569219285c7f8094ebe4d4d7a3544786394 | |
| parent | 0b22a383c77b62af062976833e8d42d4993b4b2a [diff] |
__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; }-*/;