myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mstar...@apache.org
Subject svn commit: r950213 - /myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Page.js
Date Tue, 01 Jun 2010 19:10:33 GMT
Author: mstarets
Date: Tue Jun  1 19:10:33 2010
New Revision: 950213

URL: http://svn.apache.org/viewvc?rev=950213&view=rev
Log:
TRINIDAD-1820 - JSF2 Ajax: View State input field gets recreated on every Ajax request in
IE7

Modified:
    myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Page.js

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Page.js
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Page.js?rev=950213&r1=950212&r2=950213&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Page.js (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Page.js Tue
Jun  1 19:10:33 2010
@@ -532,7 +532,18 @@ TrPage.prototype._updateViewState = func
   {
     input = doc.createElement("input");
     input.type = 'hidden';
-    input.name = TrPage._VIEW_STATE_ID;
+    
+    // TRINIDAD-1820 - work around for IE7 bug with specifying
+    // the name attribute programmatically
+    if (_agent.isIE && _agent.version < 8)
+    {
+      input.id = TrPage._VIEW_STATE_ID;
+      input.name = TrPage._VIEW_STATE_ID;
+    }
+    else
+    {
+      input.name = TrPage._VIEW_STATE_ID;
+    }
     form.appendChild(input);
   }
 



Mime
View raw message