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: Josh Juneau <juneau001_at_gmail.com>
Date: Wed, 30 Sep 2015 07:06:38 -0500

Hi Michael-

Yes, I believe we should be able to include a new pattern into the
converter. We'll need to pass the pattern to the DateTimeFormatter (
https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html),
which appears to be capable of returning only the year without the century.

Thanks

Josh Juneau
juneau001_at_gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/index.php/author/author/view/id/1866


On Wed, Sep 30, 2015 at 6:46 AM, Michael Müller <
michael.mueller_at_mueller-bruehl.de> wrote:

> Something like
> pattern="MM/dd/yyyy" additionalInputPattern="MM/dd/yy"
> --
> 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)
>>>>>
>>>>>
>>>>
>>