You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jan Dosoudil (JIRA)" <de...@myfaces.apache.org> on 2013/10/07 16:43:43 UTC

[jira] [Commented] (MYFACES-3799) ProcessError in _AjaxResponse ignores errorName in IE8

    [ https://issues.apache.org/jira/browse/MYFACES-3799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13788193#comment-13788193 ] 

Jan Dosoudil commented on MYFACES-3799:
---------------------------------------

Here is simple patch:
{code}
Index: api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
===================================================================
--- api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js	(revision 1529776)
+++ api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js	(working copy)
@@ -290,7 +290,7 @@
          *      <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");
{code}

> ProcessError in _AjaxResponse ignores errorName in IE8
> ------------------------------------------------------
>
>                 Key: MYFACES-3799
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3799
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.1.12
>         Environment: Internet explorer 8
>            Reporter: Jan Dosoudil
>
> Internet explorer doesn't implement textContent on XMLNode so errorName is evaluated to "".



--
This message was sent by Atlassian JIRA
(v6.1#6144)