empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1387257 - /empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
Date Tue, 18 Sep 2012 17:01:31 GMT
Author: doebele
Date: Tue Sep 18 17:01:30 2012
New Revision: 1387257

URL: http://svn.apache.org/viewvc?rev=1387257&view=rev
Log:
EMPIREDB-157 
JSF2: set number format grouping for text controls

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

Modified: empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java?rev=1387257&r1=1387256&r2=1387257&view=diff
==============================================================================
--- empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
(original)
+++ empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
Tue Sep 18 17:01:30 2012
@@ -441,8 +441,7 @@ public class TextInputControl extends In
             nf = NumberFormat.getNumberInstance(locale);
         // Groups Separator?
         Object groupSep = column.getAttribute(InputControl.NUMBER_GROUPSEP_ATTRIBUTE);
-        if (groupSep!=null)
-            nf.setGroupingUsed(ObjectUtils.getBoolean(groupSep));
+        nf.setGroupingUsed(groupSep!=null && ObjectUtils.getBoolean(groupSep));
         // Fraction Digits?
         Object fractDigit = column.getAttribute(InputControl.NUMBER_FRACTION_DIGITS);
         if (fractDigit!=null)



Mime
View raw message