myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1352027 - in /myfaces/core/branches/2.0.x: api/src/main/java/javax/faces/validator/_ExternalSpecifications.java impl/src/main/java/org/apache/myfaces/webapp/AbstractFacesInitializer.java
Date Wed, 20 Jun 2012 09:54:19 GMT
Author: lu4242
Date: Wed Jun 20 09:54:18 2012
New Revision: 1352027

URL: http://svn.apache.org/viewvc?rev=1352027&view=rev
Log:
MYFACES-3573 Log only once unified EL / bean validation presence 

Modified:
    myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/validator/_ExternalSpecifications.java
    myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/webapp/AbstractFacesInitializer.java

Modified: myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/validator/_ExternalSpecifications.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/validator/_ExternalSpecifications.java?rev=1352027&r1=1352026&r2=1352027&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/validator/_ExternalSpecifications.java
(original)
+++ myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/validator/_ExternalSpecifications.java
Wed Jun 20 09:54:18 2012
@@ -87,7 +87,7 @@ final class _ExternalSpecifications
                 beanValidationAvailable = false;
             }
 
-            log.info("MyFaces Bean Validation support " + (beanValidationAvailable ? "enabled"
: "disabled"));
+            //log.info("MyFaces Bean Validation support " + (beanValidationAvailable ? "enabled"
: "disabled"));
         }
         return beanValidationAvailable; 
     }
@@ -120,7 +120,7 @@ final class _ExternalSpecifications
                 unifiedELAvailable = false;
             }
 
-            log.info("MyFaces Unified EL support " + (unifiedELAvailable ? "enabled" : "disabled"));
+            //log.info("MyFaces Unified EL support " + (unifiedELAvailable ? "enabled" :
"disabled"));
         }
         return unifiedELAvailable;
     }

Modified: myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/webapp/AbstractFacesInitializer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/webapp/AbstractFacesInitializer.java?rev=1352027&r1=1352026&r2=1352027&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/webapp/AbstractFacesInitializer.java
(original)
+++ myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/webapp/AbstractFacesInitializer.java
Wed Jun 20 09:54:18 2012
@@ -51,6 +51,7 @@ import java.util.Locale;
 import java.util.Map;
 import java.util.logging.Level;
 import java.util.logging.Logger;
+import org.apache.myfaces.util.ExternalSpecifications;
 
 /**
  * Performs common initialization tasks.
@@ -158,6 +159,10 @@ public abstract class AbstractFacesIniti
             }
 
             WebConfigParamsLogger.logWebContextParams(facesContext);
+            
+            //Force output EL message
+            ExternalSpecifications.isUnifiedELAvailable();
+            ExternalSpecifications.isBeanValidationAvailable();
 
             // print out a very prominent log message if the project stage is != Production
             if (!facesContext.isProjectStage(ProjectStage.Production) &&



Mime
View raw message