You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2007/09/10 10:32:25 UTC
svn commit: r574175 -
/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: weber
Date: Mon Sep 10 01:32:24 2007
New Revision: 574175
URL: http://svn.apache.org/viewvc?rev=574175&view=rev
Log:
<http://issues.apache.org/jira/browse/TOBAGO-482> On client queued requests are submitted with wrong jsfState
Modified:
myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=574175&r1=574174&r2=574175&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Mon Sep 10 01:32:24 2007
@@ -1844,8 +1844,11 @@
}
var onComplete = requestOptions.onComplete;
requestOptions.onComplete = function(transport, json) {
- Tobago.Transport.requestComplete();
onComplete(transport, json);
+ // scripts included in response are executed via setTimeout(..., 10)
+ // because of replaceJsfState() is in this scripts the next request
+ // must delayed more than that.
+ setTimeout(Tobago.bind(Tobago.Transport, "requestComplete"), 15);
};
var oldAction = Tobago.action.value;
Tobago.action.value = actionId;