myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1139588 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
Date Sat, 25 Jun 2011 18:40:33 GMT
Author: lu4242
Date: Sat Jun 25 18:40:33 2011
New Revision: 1139588

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

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java?rev=1139588&r1=1139587&r2=1139588&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
Sat Jun 25 18:40:33 2011
@@ -922,7 +922,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