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 2010/05/10 14:34:32 UTC

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

Author: werpu
Date: Mon May 10 12:34:32 2010
New Revision: 942721

URL: http://svn.apache.org/viewvc?rev=942721&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2708



Modified:
    myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.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=942721&r1=942720&r2=942721&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 Mon May 10 12:34:32 2010
@@ -492,11 +492,11 @@ if (!myfaces._impl._util._LangUtils.exis
                     throw new Error("Changing of viewRoot attributes is not supported");
                     break;
 
-                case "javax.faces.ViewBody":
+                case "javax.faces.ViewHead":
                     throw new Error("Changing of head attributes is not supported");
                     break;
 
-                case "javax.faces.ViewHead":
+                case "javax.faces.ViewBody":                
                     var element = document.getElementsByTagName("body")[0];
                     _Utils.setAttribute(element, attributeName, attributeValue);
                     break;