myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r761603 - /myfaces/core/branches/2_0_0/api/src/main/javascript/META-INF/resources/javax/faces/ajax/jsf.js
Date Fri, 03 Apr 2009 10:32:23 GMT
Author: werpu
Date: Fri Apr  3 10:32:23 2009
New Revision: 761603

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

added a configuration override for the impl so that it becomes pluggable

Modified:
    myfaces/core/branches/2_0_0/api/src/main/javascript/META-INF/resources/javax/faces/ajax/jsf.js

Modified: myfaces/core/branches/2_0_0/api/src/main/javascript/META-INF/resources/javax/faces/ajax/jsf.js
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/javascript/META-INF/resources/javax/faces/ajax/jsf.js?rev=761603&r1=761602&r2=761603&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/javascript/META-INF/resources/javax/faces/ajax/jsf.js
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/javascript/META-INF/resources/javax/faces/ajax/jsf.js
Fri Apr  3 10:32:23 2009
@@ -40,7 +40,15 @@
     /*
      myfaces.
      */
-    jsf.ajax._impl = new myfaces._jsfImpl();
+    if('undefined' != typeof myfaces.config && null != myfaces.config &&
+       'undefined' != typeof myfaces.config.impl && null != myfaces.config.impl )
{
+
+       jsf.ajax._impl = new myfaces.config.impl(); 
+
+    } else {
+
+        jsf.ajax._impl = new myfaces._jsfImpl();
+    }
 
     /**
      * collect and encode data for a given form element (must be of type form)



Mime
View raw message