Giter Club home page Giter Club logo

Comments (4)

TomKrauss avatar TomKrauss commented on August 17, 2024

Not yet working, as method

protected static class FieldStringConverter<T> extends StringConverter<T> {
...
public static <VT> VT coerce(final Object v, final Class<VT> targetClass) {

references the static DateFormat SDF from class BeanPathAdapter.

thank you for working on this.
Tom

from jfxtras-labs.

tbee avatar tbee commented on August 17, 2024

Closed because of inactivity

from jfxtras-labs.

vova1987 avatar vova1987 commented on August 17, 2024

Hi again... ;)
Why close?
I am encountering the same issue...
When trying to bind a java.util.date field of my bean to a DatePicker value property (of type LocalDate)
I get the following exception:
Exception while converting Object to String in bidirectional binding
java.lang.IllegalArgumentException: Unable to set object value: 2015-05-01 on eyeExamDate
at jfxtras.labs.scene.control.BeanPathAdapter$FieldProperty.set(BeanPathAdapter.java:1816)
The reason is, I believe, the static SDF field of the BeanPathAdapter internal StringConverter class, which is "yyyy-MM-dd'T'HH:mm:ssz" - an is not suitable for date only values, which are printed as yyyy-MM-dd by the java.util.date toString() method.
I also noticed that the previous version of BeanPathAdapter did contain DateFormat property - why was this removed?
Do you have any workaround suggestions in the mean time?

from jfxtras-labs.

tbee avatar tbee commented on August 17, 2024

As said in the closing comment; the issue has been open for 2 years without any response. You are free to reopen it, but given that it has been stale for so long and the code is in labs, chances are low the developer will be picking this up.

from jfxtras-labs.

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.