This content has been marked as final. Show 2 replies
This seems to be a bug in JavaFX 2.2.
I just tested it with 2.2 and it doesn't work.
Then I tested the same code with JavaFX 8.0 b86 and it does work:
List listener 1 notified.
List listener 2 notified.
Value: [1, 2, 3]
Maybe you can workaround by using ListChangeListener directly on the list?
Thank you very much for your fast response. This was really driving me mad. :(
In the meantime, I filed a bug report under: [https://javafx-jira.kenai.com/browse/RT-30010] and tried to used an InvalidationListener instead of the second ChangeListener. This results in the notification of the InvalidationListener only. :(
Also thanks for the suggestion to use a ListChangeListener. I would have liked to avoid this, as this involves some type checks. The type of property (List, Double,...) is determined at runtime by a configuration file, so using listeners that are available for all types of properties would be easier. Though, as there seem to be some unforeseeable interactions between different listeners on a single property, I most likely have to use this approach...