Comments (4)
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.
Closed because of inactivity
from jfxtras-labs.
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.
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)
- BigDecimalField focusedProperty.addListener() is not working HOT 26
- In Eclipse Luna LocalDateTimeTextField popup selection not showing HOT 2
- GridView DoubleProperties never get initialized HOT 1
- Skinning issue with SimpleMetroArcGauge and BasicArcGauge HOT 6
- does BeanPathAdapter work? HOT 2
- Stdout from getClassCssMetaData (LinearGaugeSkin) HOT 1
- BigDecimalField parsing HOT 4
- SimpleMetroArcGauge stays empty on android 5.1.1 HOT 6
- Error on extends abstract class HOT 1
- BigDecimal access to textfield HOT 1
- ResponsivePane HOT 1
- Help with BeanPathAdapter HOT 2
- Java 9 changes HOT 1
- BigDecimalField changes size on first focus
- radial menu center visible until redraw
- MouseControlUtil not working properly HOT 2
- Rectangle Position in MouseControlUtil.addSelectionRectangleGesture incorrect HOT 2
- RadialMenu(..) - stroke being set before centerStrokeShape is being allocated
- BigDecimalField focus problem HOT 1
- BigDecimalField does not update text when the format is changed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jfxtras-labs.