Re: jodaLocalDate question
Re: jodaLocalDate question
- Subject: Re: jodaLocalDate question
- From: Johann Werner <email@hidden>
- Date: Thu, 27 Jan 2011 16:27:49 +0100
Try setting
er.extensions.ERXJDBCAdaptor.className=er.extensions.jdbc.ERXJDBCAdaptor
in your properties.
jw
Am 27.01.2011 um 15:49 schrieb Theodore Petrosky:
> 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
>
--
oyosys
Dipl.-Ing. Johann Werner
Schickenhof 8
D-90403 Nürnberg
Tel.: +49(0)911/4786817
Fax: +49(0)911/4786818
E-Mail: email@hidden
Web: www.oyosys.de
USt-ID: DE262086725
_______________________________________________
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