From 4a455e63ab844e5070d90fd7a4e4d0abc85bc2df Mon Sep 17 00:00:00 2001 From: Konrad Neitzel Date: Tue, 24 Nov 2026 20:52:35 +0100 Subject: [PATCH] Document one-way list replacement in the FX binding guide --- fx/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fx/README.md b/fx/README.md index 0c9767c..cc1ebe3 100644 --- a/fx/README.md +++ b/fx/README.md @@ -175,7 +175,7 @@ For `both` and `model`, the write happens when the JavaFX property changes, incl `BindingList` is the element that holds direct bindings, computed bindings, command bindings, and repeats. Its default property is `elements`, so the children in FXML are the list. An unknown child fails the load with `Not a binding element:`. Command bindings require a managed View. -When the attribute value is already an `ObservableList`, the control property is set to that same list. Direction and converter are not consulted. The tag binding names `direction="view"` and still shares the list. See [A list of simple values](#a-list-of-simple-values). +When the attribute value is already an `ObservableList`, the control property is set to that same list. With `direction="view"`, the control also follows replacement of the list reference, including a replacement with equal elements. Closing a managed View detaches that observation and restores the previous list if the control still holds the supplied list. Other directions retain their shared-list assignment. The writable observable-list path bypasses converters. See [A list of simple values](#a-list-of-simple-values). A binding that names no such control fails with `No control "` and the id. A missing `xxxProperty()` method fails with `No property` and the property name. A method that returns something other than a `Property` fails with `did not return a property`.