Re: java 8 date
Re: java 8 date
- Subject: Re: java 8 date
- From: Johann Werner <email@hidden>
- Date: Sat, 27 May 2017 12:22:04 +0200
> Am 27.05.2017 um 10:01 schrieb Paul Hoadley <email@hidden>:
>
>> 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.
You will have to use ERXDateTimeFormatter and its subclasses for that.
jw
>
>
> --
> 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
_______________________________________________
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