empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1387037 - /empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
Date Tue, 18 Sep 2012 08:09:06 GMT
Author: doebele
Date: Tue Sep 18 08:09:06 2012
New Revision: 1387037

URL: http://svn.apache.org/viewvc?rev=1387037&view=rev
Log:
EMPIREDB-157 
JSF2: convert null to an empty string instead of a string containing "null"

Modified:
    empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java

Modified: empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java?rev=1387037&r1=1387036&r2=1387037&view=diff
==============================================================================
--- empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
(original)
+++ empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
Tue Sep 18 08:09:06 2012
@@ -555,7 +555,7 @@ public abstract class InputControl
         if (value==null)
             value = getFormatOption(vi, FORMAT_NULL, FORMAT_NULL_ATTRIBUTE);
         // Convert to String
-        String s = StringUtils.valueOf(value);
+        String s = StringUtils.toString(value, "");
         if (hasFormatOption(vi, "noencode"))
             return s;
         // Encode Html



Mime
View raw message