click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r943052 - /click/trunk/click/framework/src/org/apache/click/control/Field.java
Date Tue, 11 May 2010 09:02:03 GMT
Author: sabob
Date: Tue May 11 09:02:01 2010
New Revision: 943052

URL: http://svn.apache.org/viewvc?rev=943052&view=rev
Log:
autobind only once

Modified:
    click/trunk/click/framework/src/org/apache/click/control/Field.java

Modified: click/trunk/click/framework/src/org/apache/click/control/Field.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/Field.java?rev=943052&r1=943051&r2=943052&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/Field.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/Field.java Tue May 11 09:02:01
2010
@@ -1178,9 +1178,10 @@ public abstract class Field extends Abst
      * @param value the value to format in the message
      */
     protected void setErrorMessage(String key, int value) {
-        String msg = getMessage(getName() + "." + key, getErrorLabel(), value);
+        Integer valueInteger = value;
+        String msg = getMessage(getName() + "." + key, getErrorLabel(), valueInteger);
         if (msg == null) {
-            msg = getMessage(key, getErrorLabel(), value);
+            msg = getMessage(key, getErrorLabel(), valueInteger);
         }
         setError(msg);
     }
@@ -1197,9 +1198,10 @@ public abstract class Field extends Abst
      * @param value the value to format in the message
      */
     protected void setErrorMessage(String key, double value) {
-        String msg = getMessage(getName() + "." + key, getErrorLabel(), value);
+        Double valueDouble = value;
+        String msg = getMessage(getName() + "." + key, getErrorLabel(), valueDouble);
         if (msg == null) {
-            msg = getMessage(key, getErrorLabel(), value);
+            msg = getMessage(key, getErrorLabel(), valueDouble);
         }
         setError(msg);
     }



Mime
View raw message