You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sundar Sankarnarayanan <Su...@apollogrp.edu> on 2010/03/10 17:39:47 UTC

Type conversion for Date in es_CL Locale

Hi
         We use Struts2 in conjunction with ext-js and our home grown ajax framework. Am having this weird problem that I cant figure out and am hoping I can get some advice from the experts. I have a <input type=text> which is used for an ext-js date picker component. The date format are checked for based on locales. This field corresponds to a java.util.date property defined inside a pojo.

My problem is, when I have my locale set to en_US, the struts 2 type conversion kicks in and the setter for the particular property is invoked (which I figured by setting a debug inside the setter method) where as when the locale is es_CL, struts 2 doesn't even call the setter for the date. All other fields inside the pojo are filled but the date. The surprising part was the setter is invoked when the locale is "es" instead of "es_CL".

I checked for request params that comes in etc, nothing seems to have changed here. Am not sure what could be causing this behavior.

I would truly appreciate any help in this regards.

Thanks and Regards,

Sundar Sankarnarayanan, Software Engineer
Apollo Group


________________________________
This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.