-
Notifications
You must be signed in to change notification settings - Fork 66
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
Overriding of ValidationResult for a nonParsableValue in DatePicker.checkValidity() not possible #4352
Comments
I think this issue may apply to other components like TimePicker DateTimePicker, BigDecimalField etc. as well. |
Similar suggestion in the initial addition of the "feature": #3406 (comment) |
The feature is not yet implemented, but we are currently investigating the ways of adding that one. |
What's the status of this issue ? |
Any idea, when this will be implemented ? |
I'm closing the issue because we now have a dedicated ticket (#4618) specifically for the configuration of constraint error messages. Please, follow that ticket for further updates. |
Description
I wanted to set an explicit error message to the ValidationResult.error(String) method in DatePicker.checkValidity(), but that is seems to be nearly not possible, because I had to overwrite the following methods:
I think setting the ValidationResult for hasNonParsableValue=true should be extracted to a protected method like
Environment
Vaadin 23.3.0.beta2
The text was updated successfully, but these errors were encountered: