javaee / javaserverfaces-spec

JavaServer(TM) Faces Specification web site
https://javaee.github.io/javaserverfaces-spec/
Other
43 stars 19 forks source link

Provide Converters for Java 8 Date and Time API (JSR 310) #1370

Closed glassfishrobot closed 9 years ago

glassfishrobot commented 9 years ago

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

glassfishrobot commented 9 years ago

Reported by codylerum

glassfishrobot commented 9 years ago

codylerum said: I meant to do this as a SPEC issue. Can it be moved?

glassfishrobot commented 9 years ago

@manfredriem said: Done

glassfishrobot commented 9 years ago

@edburns said: Yes, this is a must for JSF 2.3.

EG member Josh Juneau wrote a blog post about it, but to actually get it in the spec we need a lot more work: < http://www.javacodegeeks.com/2015/06/utilizing-the-java-8-date-time-api-with-jsf-and-java-ee-7.html >.

glassfishrobot commented 9 years ago

@edburns said: Some questions about putting this in the spec.

1. What do we need to say in section 3.3.3 Standard Converter Implementations?

2. Which of java.time.

{LocalDate,LocaleTime,LocalDateTime}

do we want to support? All of them I'd think, but how does this square with the JSF conversion model which seems to favor the combined "DateTime" concept.

3. Perhaps we should create a new converter along side DateTimeConverter, say JavaTimeDateTimeConverter and trick it out with lots of attributes as the current DateTimeConverter does?

glassfishrobot commented 9 years ago

javajuneau said: Actively working on prototype of LocalDateTime conversion.

Creating a new converter, as suggested by Ed Burns, and utilizing the "type" attribute of the convertDateTime tag to indicate the conversion of "localDateTime".

glassfishrobot commented 9 years ago

@edburns said: Josh! I created a topic branch for this, it is JAVASERVERFACES-4070. Please pull that branch and work from there.

I've made some good progress already.

glassfishrobot commented 9 years ago

javajuneau said: Thanks Ed, will do! I appreciate it.

glassfishrobot commented 9 years ago

Issue-Links: is duplicated by JAVASERVERFACES_SPEC_PUBLIC-1272 is related to JAVASERVERFACES-4070

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1370

glassfishrobot commented 9 years ago

Marked as fixed on Monday, October 5th 2015, 3:43:41 pm