You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2009/07/30 14:42:22 UTC

svn commit: r799249 - /myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js

Author: matzew
Date: Thu Jul 30 12:42:22 2009
New Revision: 799249

URL: http://svn.apache.org/viewvc?rev=799249&view=rev
Log:
TRINIDAD-1532 - PPR Based Components Not Working in Windows Mobile 6

Thanks to Mamallan Uthaman, for the patch

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

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js?rev=799249&r1=799248&r2=799249&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js Thu Jul 30 12:42:22 2009
@@ -138,7 +138,16 @@
   //actionForm, however in the case of a Portal 2.0 environment, this could be a special
   //expando property encoded as a ResourceUrl.  As such, if the expando is available, use it
   //for PPR
-  var pprURL = actionForm.getAttribute("_trinPPRAction");
+  var pprURL;
+  // In mobile browsers like windows mobile ie, getAttribute funtion throws an exception if 
+  // actionForm doesn't contain the attribute "_trinPPRAction".
+  try
+  {
+    pprURL = actionForm.getAttribute("_trinPPRAction");
+  }
+  catch (e)
+  {
+  }
   var action = pprURL?pprURL:actionForm.action;
   
   if (this._isMultipartForm(actionForm))