incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r454820 - /incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/NumberConverter.java
Date Tue, 10 Oct 2006 16:47:32 GMT
Author: matzew
Date: Tue Oct 10 09:47:31 2006
New Revision: 454820

URL: http://svn.apache.org/viewvc?view=rev&rev=454820
Log:
very minor changes, typo and removing adfFaces var name...

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/NumberConverter.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/NumberConverter.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/NumberConverter.java?view=diff&rev=454820&r1=454819&r2=454820
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/NumberConverter.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/NumberConverter.java
Tue Oct 10 09:47:31 2006
@@ -84,7 +84,7 @@
  * //  appropriately as specified in the documentation for the corresponding
  * //  message id.
  *
- * <code>setConvertMessageDetail(convertNumberMessageDetail);</code>
+ * <code>setConvertNumberMessageDetail(convertNumberMessageDetail);</code>
  *
  * This way user can override detail part of the {@link FacesMessage} for
  * different conversion errors that occur for wrong values, that arise
@@ -216,9 +216,9 @@
     }
 
     Locale locale = _getLocale(context);
-    RequestContext adfFacesCtx = RequestContext.getCurrentInstance();
+    RequestContext reqCtx = RequestContext.getCurrentInstance();
 
-    NumberFormat fmt = _getNumberFormat(pattern, type, locale, adfFacesCtx);
+    NumberFormat fmt = _getNumberFormat(pattern, type, locale, reqCtx);
 
     ParsePosition pp = new ParsePosition(0);
     Number num = (Number) fmt.parseObject(value,pp);
@@ -293,15 +293,15 @@
 
 
     Locale locale  = _getLocale(context);
-    RequestContext adfFacesCtx = RequestContext.getCurrentInstance();
+    RequestContext reqCtx = RequestContext.getCurrentInstance();
 
-    NumberFormat formatter = _getNumberFormat(pattern, type, locale, adfFacesCtx);
+    NumberFormat formatter = _getNumberFormat(pattern, type, locale, reqCtx);
 
     _setFormatProperties(formatter);
 
     if("currency".equals(type))
     {
-      _setCurrencyFormattingProperties(adfFacesCtx, formatter);
+      _setCurrencyFormattingProperties(reqCtx, formatter);
     }
 
     return formatter.format(value);
@@ -802,7 +802,7 @@
     String pattern,
     String type,
     Locale locale,
-    RequestContext adfFacesCtx
+    RequestContext reqCtx
     )
   {
     NumberFormat nfmt;
@@ -825,7 +825,7 @@
       // what we get here is a shallow copy. cloned DFS
       DecimalFormatSymbols dfSymbols = dfmt.getDecimalFormatSymbols();
 
-      _setUpDecimalSymbolFormatProperties(dfSymbols, adfFacesCtx, locale);
+      _setUpDecimalSymbolFormatProperties(dfSymbols, reqCtx, locale);
 
       //since we get a shallow copy - setting it again after modification.
       ((DecimalFormat) nfmt).setDecimalFormatSymbols(dfSymbols);
@@ -846,18 +846,18 @@
 
   private void _setUpDecimalSymbolFormatProperties(
     DecimalFormatSymbols symbols,
-    RequestContext adfFacesCtx,
+    RequestContext reqCtx,
     Locale locale
     )
   {
-    if (adfFacesCtx != null)
+    if (reqCtx != null)
     {
       char ch = (char) 0;
 
-      if ((ch = adfFacesCtx.getDecimalSeparator()) != (char)0)
+      if ((ch = reqCtx.getDecimalSeparator()) != (char)0)
         symbols.setDecimalSeparator(ch);
 
-      if ((ch = adfFacesCtx.getNumberGroupingSeparator()) != (char)0)
+      if ((ch = reqCtx.getNumberGroupingSeparator()) != (char)0)
         symbols.setGroupingSeparator(ch);
 
     }



Mime
View raw message