Re: Type converters for DocumentObjectBinder

2009-11-13 Thread Noble Paul നോബിള്‍ नोब्ळ्
you must have a corresponding getter which returns String. public String getValidFrom() { String s = null;//convert calendar to string return s; } On Fri, Nov 13, 2009 at 2:01 PM, paulhyo wrote: > > Hi Paul, > > it's working for Query, but not for Updating (Add Bean). The getter me

Re: Type converters for DocumentObjectBinder

2009-11-13 Thread paulhyo
Hi Paul, it's working for Query, but not for Updating (Add Bean). The getter method is returning a Calendar (GregorianCalendar instance) On the indexer side, a toString() or something equivalent is done and an error is thrown Caused by: java.text.ParseException: Unparseable date: "java.util.Gre

Re: Type converters for DocumentObjectBinder

2009-11-12 Thread Noble Paul നോബിള്‍ नोब्ळ्
create a setter method for the field which take s a Stringand apply the annotation there example private Calendar validFrom; @Field public void setvalidFrom(String s){ //convert to Calendar object and set the field } On Fri, Nov 13, 2009 at 12:24 PM, paulhyo wrote: > > Hi, > > I would li