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 2011/01/20 22:23:39 UTC
svn commit: r1061522 -
/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
Author: werpu
Date: Thu Jan 20 21:23:39 2011
New Revision: 1061522
URL: http://svn.apache.org/viewvc?rev=1061522&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2958
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=1061522&r1=1061521&r2=1061522&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 Thu Jan 20 21:23:39 2011
@@ -190,7 +190,7 @@ myfaces._impl.core._Runtime.extendClass(
this._Dom.setAttribute(viewStateField, "value", this.appliedViewState);
} else if (!viewStateField) {
var element = this._Dom.getDummyPlaceHolder();
- element.innerHTML = ["<input type='hidden' name='", this.P_VIEWSTATE ,"' value='" , this.appliedViewState , "' />"].join("");
+ element.innerHTML = ["<input type='hidden'", "id='", this.P_VIEWSTATE ,"' name='", this.P_VIEWSTATE ,"' value='" , this.appliedViewState , "' />"].join("");
//now we go to proper dom handling after having to deal with another ie screwup
try {
theForm.appendChild(element.childNodes[0]);
@@ -320,7 +320,9 @@ myfaces._impl.core._Runtime.extendClass(
//we now skip this phase and just add everything we need for the fixup code
if (!sourceForm) {
- return;
+ //no source form found is not an error because
+ //we might be able to recover one way or the other
+ return true;
}
this._setVSTForm(sourceForm);