jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] Re: [jsr372-experts mirror] Re: [JIRA] (JAVASERVERFACES_SPEC_PUBLIC-1370) Provide Converters for Java 8 Date and Time API (JSR 310)

From: Michael Müller <michael.mueller_at_mueller-bruehl.de>
Date: Wed, 30 Sep 2015 13:41:34 +0200

Hi Josh,

Thanks for your effort.

The pattern only would not fit our requirement.

Need to display date with century (e.g. German format 30.09.2015), but allow input both with and without century.
30.09.2015
30.09.15
And vice versa: input both, output without century.

Would this be possible?
-- 
Herzliche Grüße, best regards
Michael Müller
Am 30. September 2015 13:14:04 MESZ, schrieb Josh Juneau <juneau001_at_gmail.com>:
>Hi Michael-
>
>Thanks so much for your useful feedback.  In the implementation, I
>believe
>that we'll accommodate the configuration of the year via the use of the
>"pattern" attribute.  For example, in the NewDateTimeConverter class,
>I've
>implemented the formatting using the DateTimeFormatter, which will
>simply
>pass through the pattern that is specified and return the desired
>format.
>
>Hope this helps answer your question.  I will share the implementation
>with
>the group for feedback once it is complete.
>
>Best Regards
>
>Josh Juneau
>juneau001_at_gmail.com
>http://jj-blogger.blogspot.com
>https://www.apress.com/index.php/author/author/view/id/1866
>
>
>On Tue, Sep 29, 2015 at 2:22 PM, Michael Müller <
>michael.mueller_at_mueller-bruehl.de> wrote:
>
>> Hi Josh,
>>
>> I don't know, how you are implementing the converters. I'm sure, it
>qwould
>> be a good solution.
>> There is one requirement we have (and for that we had to extend the
>old
>> converter): Please allow the user to configure wheather the year
>might be
>> converted with or without century (e.g. 2015 vs. 15). Thank you!
>>
>>
>> Herzliche Grüße - Best Regards,
>>
>> Michael Müller
>>
>> Read my book "Web Development with Java and JSF":
>https://leanpub.com/jsf
>>
>>
>>
>> Am 29.09.2015 um 19:14 schrieb Josh Juneau:
>>
>>> Hi Ed-
>>>
>>> In reference to JAVASERVERFACES_SPEC_PUBLIC-1370, I'm currently
>working on
>>> a prototype for the convertDateTime converters to support Java 8
>Date/Time
>>> API.  I will update the group with my progress once I've gotten
>things
>>> into
>>> a workable state.
>>>
>>> Thanks for your time and patience.  Let me know if you have any
>questions.
>>>
>>> Best
>>>
>>> Josh Juneau
>>> juneau001_at_gmail.com
>>> http://jj-blogger.blogspot.com
>>> https://www.apress.com/index.php/author/author/view/id/1866
>>>
>>>
>>> On Tue, Sep 29, 2015 at 9:49 AM, Ed Burns (JIRA)
><jira-no-reply_at_java.net>
>>> wrote:
>>>
>>>
>>>>       [
>>>>
>>>>
>https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>>> ]
>>>>
>>>> Ed Burns reassigned JAVASERVERFACES_SPEC_PUBLIC-1370:
>>>> -----------------------------------------------------
>>>>
>>>>      Assignee: Ed Burns  (was: javajuneau)
>>>>
>>>> Provide Converters for Java 8 Date and Time API (JSR 310)
>>>>> ---------------------------------------------------------
>>>>>
>>>>>                  Key: JAVASERVERFACES_SPEC_PUBLIC-1370
>>>>>                  URL:
>>>>>
>>>> https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1370
>>>>
>>>>>              Project: javaserverfaces-spec-public
>>>>>           Issue Type: New Feature
>>>>>             Reporter: codylerum
>>>>>             Assignee: Ed Burns
>>>>>             Priority: Critical
>>>>>
>>>>> Apologies if I have missed an existing issue but I'm trying to
>determine
>>>>>
>>>> how the convertDateTime converters will be aligned to support Java
>8 Date
>>>> and Time API in JSF 2.3
>>>>
>>>>
>>>>
>>>> --
>>>> This message was sent by Atlassian JIRA
>>>> (v6.2.3#6260)
>>>>
>>>>
>>>