Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker - access to text field content #1778

Closed
nittka opened this issue Jun 9, 2021 · 2 comments
Closed

DatePicker - access to text field content #1778

nittka opened this issue Jun 9, 2021 · 2 comments

Comments

@nittka
Copy link

nittka commented Jun 9, 2021

I was not able to find java-api to access the content of the text field for the date picker.
We are migrating from Vaadin 7/8 to Vaadin 14 and have existing code that depends on having access to the actual text field, not only the date value (raising additional errors, automatically correcting format errors...).
The simplest example illustrating the problem is entering dates without the century: 1.3.20 instead of 1.3.2020
The current implementation does not even mark this as an error and I did not find a way to get notified that some text was entered. Due to the illegal format, the value remains null and no value change event is fired. Becaue there is no error, the user expects e.g. a date filter to be applied, but to the server it looks like there is no date defined!

@vlukashov
Copy link

Thanks for providing extra context!

I'll close this issue as a duplicate of #1158 so that we'll have only one open GitHub issue for this idea.

@rolfsmeds
Copy link
Contributor

As it might be of interest, we are currently planning support for customizable multiple parsing formats: #911

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants