-
Notifications
You must be signed in to change notification settings - Fork 721
Add methods to remove Bindings from Binder #9932
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
Conversation
|
This might need documentation update as well. |
|
Reviewed 1 of 2 files at r1. server/src/main/java/com/vaadin/data/Binder.java, line 2396 at r1 (raw file):
since tags for all the new methods server/src/main/java/com/vaadin/data/Binder.java, line 2398 at r1 (raw file):
(could avoid contractions like can't here and below) server/src/main/java/com/vaadin/data/Binder.java, line 2400 at r1 (raw file):
Can there be multiple bindings for a HasValue? If so, could do forEach() instead. server/src/main/java/com/vaadin/data/Binder.java, line 2412 at r1 (raw file):
or boundProperties.entrySet().removeIf(entry -> entry.getValue().equals(binding)) Comments from Reviewable |
|
Review status: 0 of 2 files reviewed at latest revision, 4 unresolved discussions. server/src/main/java/com/vaadin/data/Binder.java, line 2396 at r1 (raw file): Previously, hesara (Henri Sara) wrote…
Done. server/src/main/java/com/vaadin/data/Binder.java, line 2398 at r1 (raw file): Previously, hesara (Henri Sara) wrote…
Done. server/src/main/java/com/vaadin/data/Binder.java, line 2400 at r1 (raw file): Previously, hesara (Henri Sara) wrote…
Done. server/src/main/java/com/vaadin/data/Binder.java, line 2412 at r1 (raw file): Previously, hesara (Henri Sara) wrote…
Done. Comments from Reviewable |
|
Reviewed 1 of 2 files at r1, 1 of 1 files at r2. Comments from Reviewable |
|
Thank you so much for the pr! I hope we see this feature in the upcoming release. |
|
This looks potentially dangerous. You're removing the binding, but not the respective registration for the value change listener nor the will still (as far as I read the code) call the X property's setter on bean B (since is missing a |
Fixes and improves on PR #9932.
Port the following changes from Fw 8.2.alpha1-2: * Add methods to remove Bindings from Binder vaadin/framework#9932 * Fix removeBinding logic vaadin/framework#10002
* Add methods to remove Bindings from Binder Port the following changes from Fw 8.2.alpha1-2: * Add methods to remove Bindings from Binder vaadin/framework#9932 * Fix removeBinding logic vaadin/framework#10002 * Add unit tests Fix the name of submodule `test-components` Fix Sonar warnings
This change is