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 2010/01/12 18:36:10 UTC
svn commit: r898435 -
/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/jsf_impl.js
Author: lu4242
Date: Tue Jan 12 17:36:09 2010
New Revision: 898435
URL: http://svn.apache.org/viewvc?rev=898435&view=rev
Log:
MYFACES-2482 Use Error instead of Exception in Ajax Js Impl (Thanks to Michael Kurz for this patch)
Modified:
myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/jsf_impl.js
Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/jsf_impl.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/jsf_impl.js?rev=898435&r1=898434&r2=898435&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/jsf_impl.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/jsf_impl.js Tue Jan 12 17:36:09 2010
@@ -88,7 +88,7 @@
|| 'undefined' == typeof(formElement.nodeName)
|| null == formElement.nodeName
|| formElement.nodeName.toLowerCase() != "form") {
- throw Exception("jsf.viewState: param value not of type form!");
+ throw new Error("jsf.viewState: param value not of type form!");
}
return this._requestHandler.getViewState(formElement);
};
@@ -109,15 +109,15 @@
* assert element
*/
if ('undefined' == typeof( element ) || null == element) {
- throw new Exception("jsf.ajax, element must be set!");
+ throw new Error("jsf.ajax, element must be set!");
}
// if (!JSF2Utils.isString(element) && !(element instanceof Node)) {
- // throw new Exception("jsf.ajax, element either must be a string or a dom node");
+ // throw new Error("jsf.ajax, element either must be a string or a dom node");
// }
element = JSF2Utils.byId(element);
if ('undefined' == typeof element || null == element) {
- throw new Exception("Element either must be a string to a or must be a valid dom node");
+ throw new Error("Element either must be a string to a or must be a valid dom node");
}
};
@@ -127,7 +127,7 @@
return;
}
if (!(func instanceof Function)) {
- throw new Exception("Functioncall " + func + " is not a function! ");
+ throw new Error("Functioncall " + func + " is not a function! ");
}
}