You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/05/26 07:08:58 UTC

svn commit: r178585 - /myfaces/trunk/src/jsfapi/javax/faces/component/UIInput.java

Author: mmarinschek
Date: Wed May 25 22:08:57 2005
New Revision: 178585

URL: http://svn.apache.org/viewcvs?rev=178585&view=rev
Log:
Empty strings ought not to be converted to null values.

Modified:
    myfaces/trunk/src/jsfapi/javax/faces/component/UIInput.java

Modified: myfaces/trunk/src/jsfapi/javax/faces/component/UIInput.java
URL: http://svn.apache.org/viewcvs/myfaces/trunk/src/jsfapi/javax/faces/component/UIInput.java?rev=178585&r1=178584&r2=178585&view=diff
==============================================================================
--- myfaces/trunk/src/jsfapi/javax/faces/component/UIInput.java (original)
+++ myfaces/trunk/src/jsfapi/javax/faces/component/UIInput.java Wed May 25 22:08:57 2005
@@ -262,11 +262,6 @@
         Object submittedValue = getSubmittedValue();
         if (submittedValue == null) return;
 
-        if(submittedValue instanceof String && ((String) submittedValue).length()==0)
-        {
-            submittedValue = null;
-        }
-
         Object convertedValue = getConvertedValue(context, submittedValue);
 
         if (!isValid()) return;