jodaLocalDate question
jodaLocalDate question
- Subject: jodaLocalDate question
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 27 Jan 2011 06:49:08 -0800 (PST)
I am trying to use a JodaLocalDate in my app. I changed my postgresql db to have date columns and bound them in Entity Modeler to jodaLocalDate prototype.
I have a datepicker that i use to select the date in question. I have not been able to use the datepicker and bind the value directly to my LocalDate method. I keep getting an error that it was expecting a LocalDate but received a NSTimestamp and that this can happen if you forget to use a formatter. I am using a formatter. so I changed to a method that accepts a NSTimestamp and I am converting to a LocalDate. I want to use the LocalDate in my query.
But now my query returns an error:
Error: java.lang.NoSuchMethodException: Class er.prototypes.ValueConversion does not implement method jodaLocalDate
Reason: Class er.prototypes.ValueConversion does not implement method jodaLocalDate
I downloaded (svn from the prescribed location in the WIKI) and compile. I checked the er prototypes valueconversion and indeed the methods for Joda are there ( public static Date jodaLocalDate(LocalDate value) {)
1. should I be able to use a method :
public void setReportDate(LocalDate rDate) {
this.reportDate = rDate;
}
public LocalDate reportDate() {
return reportDate;
}
and bind this to the value of the AjaxDatePicker? If yes, HOW. I keep getting an error about the missing formatter.
if no then Why do I get this error about the missing valueConversion?
I could use some help before I go mad.
That said, what I am trying to do is use a date column in my postgresql database. I don't need timestamps. Is there a way to do this?
Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden