• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Joda question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Joda question


  • Subject: Re: Joda question
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 15 Sep 2011 12:59:35 -0700 (PDT)

Thanks Paul, but I tried:

public ERXJodaLocalDateFormatter jodaFormat1 = new ERXJodaLocalDateFormatter("%m/%d/%Y");

And it throws the same error:

<er.ajax.AjaxRequestHandler>: Exception occurred while handling request:
java.lang.IllegalArgumentException: Invalid format: "09/28/2011"

I also tried it with NO formatter and the app crashed saying that it did not like the NSTimestamp

IllegalArgumentException: While trying to set the field "myJodaDate" on an object of type com.eltek.components.Main we expected a org.joda.time.LocalDate but received a com.webobjects.foundation.NSTimestamp with a value of 2011-09-30 04:00:00 Etc/GMT. This often happens if you forget to use a formatter.

other ideas??

Ted

--- On Thu, 9/15/11, Paul Yu <email@hidden> wrote:

> From: Paul Yu <email@hidden>
> Subject: Re: Joda question
> To: "Theodore Petrosky" <email@hidden>
> Cc: "Ramsey Gurley" <email@hidden>, email@hidden
> Date: Thursday, September 15, 2011, 3:44 PM
> 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

  • Follow-Ups:
    • Re: Joda question
      • From: Chuck Hill <email@hidden>
References: 
 >Re: Joda question (From: Paul Yu <email@hidden>)

  • Prev by Date: Re: Joda question
  • Next by Date: Re: Joda question
  • Previous by thread: Re: Joda question
  • Next by thread: Re: Joda question
  • Index(es):
    • Date
    • Thread