Which validator did you use? It sounds like you're comparing a String property using 
an IntRangeFieldValidator, which needs the value to be an Integer

> -----Original Message-----
> From: Samuel Mota [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 25, 2003 8:54 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] XWVF Interceptor
> 
> 
> 
> hi Jason, all ...
> 
> >Do you have the ParameterInterceptor applied before the validation 
> >interceptor?
> 
> ops ... that was missing :) ... Now the values are OK ... but 
> (there is always a but)
> 
> I'm getting a ClassCastException throwed by the String method 
> compareTo(Object)  because at AbstractRangeValidator.java at 
> the validate() method this line:
>         if ((getMinComparatorValue() != null) && 
> (value.compareTo(getMinComparatorValue()) < 0)) {
>             addFieldError(getFieldName(), object);
>         }
> is comparing a string value (value variable) with a Integer 
> object returned by the
> getMinComparatorValue()
> 
> Am I missing something or this is a bug?
> 
> thanks
> 
> + Samuel G. Mota
> + [EMAIL PROTECTED]
> + 55 (11) 4417 7093
> + Business Application Dpt.
> + Netset Serviços em Tecnologia
> + a Hypercom Company
> + http://www.hypercom.com
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to