Hello everyone,

     We're using the Spring version of appfuse and we're using validators to
validate our textbox inputs. When we try to enter characters or empty values
to textboxes requiring int values, we got this error :

Warning Failed to convert property value of type [java.lang.String] to
required type [int] for property brandId; nested exception is
java.lang.NumberFormatException: For input string: ""

Supposed to be this is the code that we have in our validator code :

        ValidationUtils.rejectIfEmptyOrWhitespace( errors, "brandId",
"",null, "Brand ID is required.");

 How can we go about this so that the NumberFormatException error will not
show up in the error messages.
-- 
View this message in context: 
http://www.nabble.com/Data-binding-errors-when-saving-null-values-in-textboxes-requiring-int-tf4169696s2369.html#a11862470
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to