You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2013/10/12 17:47:46 UTC

svn commit: r1531548 - in /myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore: _AjaxResponse.js _AjaxResponseJSF22.js

Author: lu4242
Date: Sat Oct 12 15:47:46 2013
New Revision: 1531548

URL: http://svn.apache.org/r1531548
Log:
MYFACES-3799 ProcessError in _AjaxResponse ignores errorName in IE8 (Thanks to Jan Dosoudil for provide this patch)

Modified:
    myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
    myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponseJSF22.js

Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js?rev=1531548&r1=1531547&r2=1531548&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js Sat Oct 12 15:47:46 2013
@@ -290,7 +290,7 @@ _MF_SINGLTN(_PFX_XHR + "_AjaxResponse", 
          *      <error-message><![CDATA[message]]></error-message>
          * <error>
          */
-        var errorName = node.firstChild.textContent || "",
+        var errorName = node.firstChild.textContent || node.firstChild.text || "",
                 errorMessage = node.childNodes[1].firstChild.data || "";
 
         this.attr("impl").sendError(request, context, this.attr("impl").SERVER_ERROR, errorName, errorMessage, "myfaces._impl.xhrCore._AjaxResponse", "processError");

Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponseJSF22.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponseJSF22.js?rev=1531548&r1=1531547&r2=1531548&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponseJSF22.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponseJSF22.js Sat Oct 12 15:47:46 2013
@@ -239,7 +239,7 @@ if (!myfaces._impl.core._Runtime.fetchNa
              *      <error-message><![CDATA[message]]></error-message>
              * <error>
              */
-            var errorName = node.firstChild.textContent || "",
+            var errorName = node.firstChild.textContent || node.firstChild.text || "",
                     errorMessage = node.childNodes[1].firstChild.data || "";
 
             _getImpl().sendError(request, context, _getImpl().SERVER_ERROR, errorName, errorMessage, "myfaces._impl.xhrCore._AjaxResponse", "_processError");