Re: Joda question
Re: Joda question
- Subject: Re: Joda question
- From: Paul Yu <email@hidden>
- Date: Thu, 15 Sep 2011 15:44:26 -0400
The last time I looked at this. The date format for AjaxDatePicker HAD to be %m/%d/%Y.
Paul
On Sep 15, 2011, at 3:28 PM, Theodore Petrosky wrote:
> thanks, I checked the path and I saw that ERAttributeExtension was not included. So I added it, and yes I now the fetch works and shows the correct date.
>
> I am playing with an AjaxDatePicker and there is a problem when the form is submitted.
>
> JodaTestCalendar : AjaxDatePicker {
> value = myJodaDate;
> formatter = jodaFormat1;
> id = "DateInputWithFormatField";
> }
>
> here is my formatter:
>
> public ERXJodaLocalDateFormatter jodaFormat1 = new ERXJodaLocalDateFormatter("%Y-%m-%d");
>
> Here is my form:
>
> <wo:WOForm>
> <webobject name = "JodaTestCalendar"/><wo:AjaxSubmitButton action = "$insertDate" value = "Insert" updateContainerID="loopID"/>
> </wo:WOForm>
>
> the method insertDate is not getting called
>
> <er.ajax.AjaxRequestHandler>: Exception occurred while handling request:
> java.lang.IllegalArgumentException: Invalid format: "2011-09-17"
>
> any idea where I should look?
>
> Ted
>
> --- On Thu, 9/15/11, Ramsey Gurley <email@hidden> wrote:
>
> From: Ramsey Gurley <email@hidden>
> Subject: Re: Joda question
> To: "Theodore Petrosky" <email@hidden>
> Cc: email@hidden
> Date: Thursday, September 15, 2011, 11:26 AM
>
>
> On Sep 15, 2011, at 7:14 AM, Theodore Petrosky wrote:
> I did a wonder fetch and I get this error:
>
> TestBedTable.fetchAllTestBedTables(theEC);
>
> Class org.joda.time.LocalDate does not implement method jodaLocalDate
>
> Am I missing something (meaning am I supposed to import something specific)?
>
>
> Make sure you added ERAttributeExtension to your classpath ahead of the JavaEOAccess framework.
> http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/attributeextension/package-summary.html
> If you've done that, then I suspect you've saved a a change in ERPrototypes which caused WOLips to overwrite some attribute settings it doesn't understand yet. It should be calling the static method on the valuefactory/valueconversion classes in the ERPrototype framework.
> Ramsey
>
> _______________________________________________
> 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
_______________________________________________
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