Robin Mannering-4 wrote:
> 
> Values outside the range are picked up correctly.
> 
> However, when the values are inside the range, the validation rule 
> 'requiredstring' insists that there is no value for agencyCommRate and 
> validation always fails.
> 
> 
Looking at source of RequiredStringValidator, seems like the requiredstring
fails since it encounters a non-String value 

if (!(value instanceof String)) {
            addFieldError(fieldName, object);

Can you try replacing <field-validator type="requiredstring"> with
<field-validator type="required"> 

Also, you may want to put short-circuit="true" attribute so that the
subsequent validations don't fire if the previous ones fail

Btw, this does not explain how it works fine for values outside the range..


HTH
-- 
View this message in context: 
http://www.nabble.com/Field-Validator-and-BigDecimal-tp25489575p25530407.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to