BootsFaces-OSP icon indicating copy to clipboard operation
BootsFaces-OSP copied to clipboard

Java 8 date support

Open lyahim opened this issue 8 years ago • 4 comments

Hi all,

I would like to interest about Java 8 date support. Do you have plan when will be available in Bootsfaces?

Thank you, Mihaly

lyahim avatar Apr 24 '17 13:04 lyahim

Supporting the Java 8 dates probably amounts to dropping compatibility to Java 6 and 7. We might do this soon. But still, it's a bold decision, so we're still unsure.

stephanrauh avatar Apr 24 '17 19:04 stephanrauh

@lyahim have you tried this https://jj-blogger.blogspot.com.es/2015/06/utilizing-java-8-date-time-api-with-jsf.html? It worked for me on PrimeFaces.

I think BootsFaces could do some tricks to provide LocalDate and LocalDateTime converters (putting them on a separated JAR, compiled with Java 8 and then depending on that from BootsFaces). Not sure how well would that work though.

ggam avatar Apr 26 '17 10:04 ggam

https://www.threeten.org/threetenbp/

ThreeTen-Backport provides a backport of the Java SE 8 date-time classes to Java SE 6 and 7.

The backport is NOT an implementation of JSR-310, as that would require jumping through lots of unnecessary hoops. Instead, this is a simple backport intended to allow users to quickly use the JSR-310 API on Java SE 6 and 7. The backport should be referred to using the “ThreeTen” name. The backport is curated by the primary author of the Java 8 date and time library,

geopossachs avatar May 02 '20 13:05 geopossachs

Cool project! However, I believe we can drop Java 7 support. The JRebel team report a market share of 7%. https://snyk.io/wp-content/uploads/jvm_2020.pdf even reports merely 3%.

stephanrauh avatar May 02 '20 15:05 stephanrauh

I'm afraid development of BootsFaces has slowed down considerably. We'll never manage to address this issue. Let's close it.

stephanrauh avatar Aug 12 '24 15:08 stephanrauh