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

Fusion: Data Binding: OffsetDateTime and vaadin-date-time-picker #234

Open
Lars-jnk opened this issue Jun 23, 2021 · 1 comment
Open

Fusion: Data Binding: OffsetDateTime and vaadin-date-time-picker #234

Lars-jnk opened this issue Jun 23, 2021 · 1 comment
Labels
bug Something isn't working hilla Issues related to Hilla

Comments

@Lars-jnk
Copy link

Description of the bug

If you wanna bind a OffsetDateTime on a component, it dosn't show the value. If you enter a value you get a validation error.

Minimal reproducible example

<vaadin-date-time-picker ...="${field(this.binder.model.createdAt)}" label="date-time"></vaadin-date-time-picker>

Expected behavior

show value and keep the entered value.

Actual behavior

show an empty picker and, after enter a value, throw an exception on submit:

ValidationError: There are validation errors in the form.

  • dto - ServerValidator: Unable to deserialize an endpoint method parameter into type '...'
    at Binder.eval (Binder.js:163)
    at Generator.throw ()
    at rejected (Binder.js:11)

If you enter nothing the old value is transmitted

Versions:

- Vaadin / Flow version: 20.0.3
@pleku pleku added the hilla Issues related to Hilla label Jun 24, 2021
@haijian-vaadin haijian-vaadin added the bug Something isn't working label Aug 24, 2021
@haijian-vaadin
Copy link
Contributor

I think the reason is that we don't support the OffsetDateTime yet in Fusion.

@vaadin-bot vaadin-bot transferred this issue from vaadin/flow Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hilla Issues related to Hilla
Projects
None yet
Development

No branches or pull requests

3 participants