Because the property setting should catch the exception and add a field
error...

> -----Original Message-----
> From: James Cook [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 31, 2003 2:31 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] Any hope of validating empty input text?
> 
> 
> > -----Original Message-----
> > Behalf Of Jason Carreira
> > You also get number format messages for non int values?
> > That's a bug... It should just add a field error...
> 
> Here is the exception for a non-numeric value. How can this 
> ever be a field error if OGNL throws this before the 
> calidation interceptor gets a crack at it?
> 
> [com.opensymphony.xwork.interceptor.ParametersInterceptor] 
> Setting params {personIDNumber=[Ljava.lang.String;@e79eb3}
> java.lang.NumberFormatException: For input string: "d" 
> java.lang.NumberFormatException.forInputString(NumberFormatExc
> eption.jav
> a:48)
> java.lang.Long.parseLong(Long.java:323)
> java.lang.Long.parseLong(Long.java:381)
> ognl.OgnlOps.longValue(OgnlOps.java:85)
> ognl.OgnlOps.convertValue(OgnlOps.java:209)
> ognl.DefaultTypeConverter.convertValue(DefaultTypeConverter.java:50)
> com.opensymphony.xwork.XWorkBasicConverter.convertValue(XWorkB
> asicConver
> ter.java:80)
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program. 
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/ 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to