datetimepicker and dates 2007-02-07 - By Dariusz Wojtas
Back I have created issue WW-1717 describing the problem of logging values by the parameters interceptor.
Regards Dariusz Wojtas
On 2/7/07, Dariusz Wojtas <dwojtas@(protected)> wrote: > Hi Musachy, > > I compiled the latest xwork 2.0.1 snapshot. > I used S2.0.5 snapshot (last weekend) and today's xwork 2.0.1 snapshot. > I have double checked if I use correct JAR files. > The problem is still there. > Exactly the same symptoms. > Date is not set, property is null: > > <s:datetimepicker name="myDateProperty" displayFormat="yyyy-MM-dd" > label="My Date Label"/> > > And I get the same error on the console: > 19:55:00,984 ERROR - ParametersInterceptor - > ParametersInterceptor - [setParameters]: Unexpected Exception catched: > Error setting expression 'myDateProperty' with value > '[Ljava.lang.String;@(protected)' > > If I uncomment my custom Date converter in xwork-conversion.properties > then it works. > > One extra question. > Can the interceptor be modified to check if the parameter is an array > (We both know it is at this point), and print at least the 1st element > from the array? > Dummy toString from array is almost useless. > > Something like > Error setting expression 'myDateProperty' with value ['<1st val>', ....] > > > Best regards > Dariusz Wojtas
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|