• 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: java 8 date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java 8 date


  • Subject: Re: java 8 date
  • From: Paul Hoadley <email@hidden>
  • Date: Sat, 27 May 2017 17:31:43 +0930

On 27 May 2017, at 4:21 pm, Theodore Petrosky <email@hidden> wrote:

> If I select JavaLocalDate as the prototype then when I bring in a edit page with this propertyKey it shows only as a String in a ERD2WDisplayString component. I tried to create a rule to use the ERDEditDatePopup component, but then there is an error; java.time.LocalDate cannot be cast to com.webobjects.foundation.NSTimestamp.
>
> Am I missing something? There appear to be many advantages to use the Java Local Date instead of NSTimestamp but maybe it is just too new.

Everything in D2W and Wonder’s D2W extensions will pre-date Java 8, so you’re basically on your own. Off the top of my head, I don’t know the solution. If there is one it likely involves pointing something at the appropriate formatter, though even then you might be out of luck because Java 8 date formatters don’t extend java.text.Format.


--
Paul Hoadley
http://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 _______________________________________________
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: java 8 date
      • From: Johann Werner <email@hidden>
References: 
 >java 8 date (From: Theodore Petrosky <email@hidden>)
 >Re: java 8 date (From: Paul Hoadley <email@hidden>)
 >Re: java 8 date (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: java 8 date
  • Next by Date: Re: java 8 date
  • Previous by thread: Re: java 8 date
  • Next by thread: Re: java 8 date
  • Index(es):
    • Date
    • Thread