Revision: 788
          http://stripes.svn.sourceforge.net/stripes/?rev=788&view=rev
Author:   tfenne
Date:     2008-01-21 08:25:38 -0800 (Mon, 21 Jan 2008)

Log Message:
-----------
Fix for STS-409: TypeConverter validation error is thrown even is mask 
validation error was thrown

Modified Paths:
--------------
    
trunk/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java
===================================================================
--- 
trunk/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java
   2008-01-21 16:13:48 UTC (rev 787)
+++ 
trunk/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java
   2008-01-21 16:25:38 UTC (rev 788)
@@ -155,9 +155,11 @@
                         doPreConversionValidations(name, values, 
validationInfo, errors);
                     }
 
-                    convertedValues = convert(bean, name, values, scalarType, 
validationInfo,
-                            errors);
-                    allConvertedFields.put(name, convertedValues);
+                    // Only do type conversion if there aren't errors already
+                    if (errors.isEmpty()) {
+                        convertedValues = convert(bean, name, values, 
scalarType, validationInfo, errors);
+                        allConvertedFields.put(name, convertedValues);
+                    }
 
                     // If we have errors, save them, otherwise bind the 
parameter to the form
                     if (errors.size() > 0) {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to