myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1139583 - /myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
Date Sat, 25 Jun 2011 18:38:29 GMT
Author: lu4242
Date: Sat Jun 25 18:38:28 2011
New Revision: 1139583

URL: http://svn.apache.org/viewvc?rev=1139583&view=rev
Log:
MYFACES-3187 DebugPhaseListener shouldn't be active by default

Modified:
    myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java

Modified: myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java?rev=1139583&r1=1139582&r2=1139583&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
(original)
+++ myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
Sat Jun 25 18:38:28 2011
@@ -884,7 +884,8 @@ public class FacesConfigurator
         
         // if ProjectStage is Development, install the DebugPhaseListener
         FacesContext facesContext = FacesContext.getCurrentInstance();
-        if (facesContext.isProjectStage(ProjectStage.Development))
+        if (facesContext.isProjectStage(ProjectStage.Development) && 
+            MyfacesConfig.getCurrentInstance(facesContext.getExternalContext()).isDebugPhaseListenerEnabled())
         {
             lifecycle.addPhaseListener(new DebugPhaseListener());
         }



Mime
View raw message