myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r906141 - in /myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core: WebXmlParameter.java startup/ExtValStartupListener.java
Date Wed, 03 Feb 2010 17:30:18 GMT
Author: gpetracek
Date: Wed Feb  3 17:30:18 2010
New Revision: 906141

URL: http://svn.apache.org/viewvc?rev=906141&view=rev
Log:
EXTVAL-79

Modified:
    myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/WebXmlParameter.java
    myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/startup/ExtValStartupListener.java

Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/WebXmlParameter.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/WebXmlParameter.java?rev=906141&r1=906140&r2=906141&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/WebXmlParameter.java
(original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/WebXmlParameter.java
Wed Feb  3 17:30:18 2010
@@ -110,6 +110,12 @@
         .getInitParameter("CUSTOM_FACES_MESSAGE_FACTORY");
 
     /*
+     * activate
+     */
+    static final String ACTIVATE_REQUIRED_INITIALIZATION = WebXmlUtils
+        .getInitParameter("ACTIVATE_REQUIRED_INITIALIZATION");
+    
+    /*
      * deactivate
      */
     @Deprecated
@@ -132,9 +138,6 @@
     static final String DEACTIVATE_VALIDATION_PARAMETERS = WebXmlUtils
         .getInitParameter("DEACTIVATE_VALIDATION_PARAMETERS");
 
-    static final String DEACTIVATE_REQUIRED_INITIALIZATION = WebXmlUtils
-        .getInitParameter("DEACTIVATE_REQUIRED_INITIALIZATION");
-
     //there is nothing like DEACTIVATE_DEFAULT_VALIDATION_INTERCEPTOR
     //use ExtValContext.getContext().denyRendererInterceptor(...) within an extval-StartupListener
 

Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/startup/ExtValStartupListener.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/startup/ExtValStartupListener.java?rev=906141&r1=906140&r2=906141&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/startup/ExtValStartupListener.java
(original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/startup/ExtValStartupListener.java
Wed Feb  3 17:30:18 2010
@@ -230,8 +230,11 @@
 
     private void initRequiredInitialization()
     {
-        boolean requiredInitialization = !"true".equalsIgnoreCase(WebXmlParameter.DEACTIVATE_REQUIRED_INITIALIZATION);
+        if(WebXmlParameter.ACTIVATE_REQUIRED_INITIALIZATION != null)
+        {
+            boolean requiredInitialization = "true".equalsIgnoreCase(WebXmlParameter.ACTIVATE_REQUIRED_INITIALIZATION);
 
-        ExtValContext.getContext().addGlobalProperty("init:required", requiredInitialization);
+            ExtValContext.getContext().addGlobalProperty("init:required", requiredInitialization);
+        }
     }
 }



Mime
View raw message