myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1793926 - /myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/UIInput.java
Date Thu, 04 May 2017 23:07:39 GMT
Author: lu4242
Date: Thu May  4 23:07:39 2017
New Revision: 1793926

URL: http://svn.apache.org/viewvc?rev=1793926&view=rev
Log:
small fix make constant EMPTY_STRING_AS_NULL_PARAM_NAME public as JSF 2.3 spec says

Modified:
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/UIInput.java

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/UIInput.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/UIInput.java?rev=1793926&r1=1793925&r2=1793926&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/UIInput.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/UIInput.java Thu May
 4 23:07:39 2017
@@ -82,9 +82,13 @@ public class UIInput extends UIOutput im
      * <p>Note this param is ignored for components extending from UISelectOne/UISelectMany.</p>
      **/
     @JSFWebConfigParam(defaultValue="false", expectedValues="true, false", since="2.0", group="validation")
-    private static final String EMPTY_VALUES_AS_NULL_PARAM_NAME
+    public static final String EMPTY_STRING_AS_NULL_PARAM_NAME
             = "javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL";
 
+    /**
+     * If set to true, validation is always performed when required is true.
+     */
+    @JSFWebConfigParam(defaultValue="false", expectedValues="true, false", since="2.3", group="validation")
     public static final String ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE 
             = "javax.faces.ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE";
     
@@ -492,7 +496,7 @@ public class UIInput extends UIOutput im
         if (interpretEmptyStringAsNull == null)
         {
             // parses the web.xml to get the "javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL"
value
-            String param = ec.getInitParameter(EMPTY_VALUES_AS_NULL_PARAM_NAME);
+            String param = ec.getInitParameter(EMPTY_STRING_AS_NULL_PARAM_NAME);
 
             // evaluate the param
             interpretEmptyStringAsNull = "true".equalsIgnoreCase(param);



Mime
View raw message