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

setValue is ignored #25

Closed
javier-godoy opened this issue Jan 11, 2021 · 1 comment
Closed

setValue is ignored #25

javier-godoy opened this issue Jan 11, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@javier-godoy
Copy link
Member

From thread in Vaadin Directory, Matteo De Franceschi wrote:

I'm not able to use the "setValue" method. It seems it is ignored.

@javier-godoy javier-godoy added the bug Something isn't working label Jan 11, 2021
@javier-godoy
Copy link
Member Author

javier-godoy commented Jan 11, 2021

The component doesn't implement setPresentationValue and doesn't call setModelValue thus the "expected" (and incorrect) behavior is that server-side and client-side representations diverge.

@Override
protected void setPresentationValue(List<T> newPresentationValue) {
}

See:
https://github.com/vaadin/flow/blob/c009afc5c24d8a3d6abc14f6f5cd3faea80c1932/flow-server/src/main/java/com/vaadin/flow/component/AbstractField.java#L41-L47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant