You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by cj...@apache.org on 2010/02/09 17:25:23 UTC

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

Author: cjhoward
Date: Tue Feb  9 16:25:22 2010
New Revision: 908104

URL: http://svn.apache.org/viewvc?rev=908104&view=rev
Log:
MYFACES-2458 - typo.

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=908104&r1=908103&r2=908104&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 Tue Feb  9 16:25:22 2010
@@ -213,12 +213,12 @@
             if(null != sourceForm) {
                 /*we check for an element and include a namesearch, but only within the bounds of the committing form*/
                 var element = myfaces._impl._util._Utils.getElementFromForm(request, context, "javax.faces.ViewState", sourceForm,  true, true);
-                //if(null == element) {//no element found we have to append a hidden field
+                if(null == element) {//no element found we have to append a hidden field
                     element = document.createElement("input");
                     myfaces._impl._util._Utils.setAttribute(element,"type", "hidden");
                     myfaces._impl._util._Utils.setAttribute(element,"name","javax.faces.ViewState");
                     sourceForm.appendChild(element);
-                //}
+                }
                 myfaces._impl._util._Utils.setAttribute(element,"value", node.firstChild.nodeValue);
 
             }