Generics and custom Type Converter (Struts 2.1.8)

2010-04-01 Thread Sundar Sankar
Hi I had a weird problem earlier where, if my pojo had a variable of type Date, struts was looking for setVariable(String) instead of a setVariable(Date) for browser locale = es_Cl. I wrote a custom type handler to solve this problem. Now am stuck with the same problem where I have a

Locale based Type handler

2010-03-11 Thread Sundar Sankar
Hi I use Struts 2.0.11 for my web application. I have a text field that maps to a java.util.date in my pojo. When my Locale is English, the date seems to be set fine, But when my locale is es_CL, struts seems to be searching for a setDate(java.lang.String) instead. Am not sure why this is

Re: FW: Type conversion for Date in es_CL Locale

2010-03-10 Thread Sundar Sankar
More info on this! Looks like just for locale es_CL. OGNL is trying to find setXXX(String) and for locale en_US and es etc, it does figure out the setXXX(Date) Not sure why this is happening. Should i create a jira for this? Is there a work around that I may use.. Any info on this is appreciated