struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: [S2] Date validator error!
Date Mon, 16 Apr 2007 06:44:09 GMT
Note that what is logged is not and error; it's logged as a WARNING. 
These warnings are usually noise (I have my logging configuration set up 
to suppress them, so I never see them). Are you seeing a problem other 
than the warning in the logs?

L.

Telmo Costa wrote:
> Hi everyone,
> 
>  
> 
> I have the following configuration for a java.util.Date field:
> 
>  
> 
>     <field-validator type="date" short-circuit="true">
> 
>         <param name="min">01/01/1990</param>
> 
>         <param name="max">01/01/2000</param>
> 
>         <message key="validator.date" />
> 
>     </field-validator>
> 
>  
> 
> But, when running it I got the following exception:
> 
>  
> 
> 14/Abr/2007 17:42:50 com.opensymphony.xwork2.util.OgnlUtil
> internalSetProperty
> 
> WARNING: Caught OgnlException while setting property 'max' on type
> 'com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator'.
> 
> java.lang.NoSuchMethodException: setMax(java.lang.String)
> 
>                 at
> ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:810)
> 
>                 at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)
> 
>  
> 
> The DateRangeFieldValidator has setters for "min" and "max" with
> "java.util.Date" but ognl is trying to set a string.
> 
>  
> 
> I'm I doing anything wrong?
> 
>  
> 
> Tks a lot
> 
> 


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


Mime
View raw message