Giter Site home page Giter Site logo

Comments (16)

GedMarc avatar GedMarc commented on June 9, 2024 1

guys no it is not an issue
LocalDate and Instant have changed between JDK 8 and JDK 9 and up, you have to change your code (or use META-INF/versions), The precision for deserialization and serialization (0..9fractional nano) as well

https://blog.joda.org/2017/02/java-time-jsr-310-enhancements-java-9.html

Further more - locale's are not really enabled anymore by default, especially in module mode, so keep an eye out for that :
image

this is by design

from primefaces-extensions.

melloware avatar melloware commented on June 9, 2024

I will investigate.

from primefaces-extensions.

melloware avatar melloware commented on June 9, 2024

I wonder if it is locale related? I am running it locally and its working fine for me? My browser is English United States locale since I live in the US.

from primefaces-extensions.

jepsar avatar jepsar commented on June 9, 2024

My browser is also set to US English as the default (I prefer it over Dutch online)... weird though that it works in production for me.

from primefaces-extensions.

melloware avatar melloware commented on June 9, 2024

So is it failing on localhost for you in the latest showcase?

from primefaces-extensions.

jepsar avatar jepsar commented on June 9, 2024

Yes, I assumed it was caused something changed in the showcase recently.

from primefaces-extensions.

melloware avatar melloware commented on June 9, 2024

I wonder if its a JDK issue with short format?

<f:convertDateTime type="both" dateStyle="short" locale="en"/>

I am using JDK8.

from primefaces-extensions.

jepsar avatar jepsar commented on June 9, 2024

Ah, I'm on 11 by default. Let me see if it works with 8.

from primefaces-extensions.

melloware avatar melloware commented on June 9, 2024

We have seen this before with JDK11: primefaces/primefaces#5696

from primefaces-extensions.

jepsar avatar jepsar commented on June 9, 2024

It's indeed an issue with JDK 11.

from primefaces-extensions.

jepsar avatar jepsar commented on June 9, 2024

@GedMarc Yes, I meant that the issue in the showcase only occurs when the showcase is run with JDK 11. Thanks for pointing that out though. @melloware does this require any action? PF targets JDK 8, right?

from primefaces-extensions.

tandraschko avatar tandraschko commented on June 9, 2024

PF targets all versions IMO but LTS for sure (8, 11, 15/16?)

from primefaces-extensions.

GedMarc avatar GedMarc commented on June 9, 2024

8 / 11 /17 ?

I'm running PF on JDK 14 JLink build here (Mojarra 'ish) https://pfshowcase.guicedee.com/
I'll see if i can replicate and resolve, it will definitely need a multi-version jar though, you guys ok with that?

from primefaces-extensions.

GedMarc avatar GedMarc commented on June 9, 2024

mmm, please assist in replication - can't seem to or i've fixed in somewhere on my side already (will make the pr easier..)

from primefaces-extensions.

melloware avatar melloware commented on June 9, 2024

You can read the whole thread or check out @christophs78 debugging the problem: primefaces/primefaces#5696 (comment)

and since this conversion is happening inside f:convertDateTime its counting on the JDK to be correct.

Especially if you use Locale en_GB in OpenJDK 11 you will see the issue.

from primefaces-extensions.

melloware avatar melloware commented on June 9, 2024

For now I just fixed the examples to work in JDK8 or 11+

from primefaces-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.