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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to