• 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:28:33 -0700 (PDT)

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

  • Follow-Ups:
    • Re: Joda question
      • From: Paul Yu <email@hidden>
  • Prev by Date: Re: JasperReports and Cross-platform Fonts
  • Next by Date: Re: Joda question
  • Previous by thread: Re: Joda question
  • Next by thread: Re: Joda question
  • Index(es):
    • Date
    • Thread