Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8123257

InvalidationListener on a binding created using Bindings.select is only called on first change

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 7u13
    • javafx

      If you add an InvalidationListener to a binding created using Bindings.select(), the respective listener is only called upon the first change to the respective nested property.

         Bindings.<String>select(person.addressProperty(), "street").addListener(invalidationListener);

      If you use a ChangeListener instead, it works fine.
      If you use a regular binding with an InvalidationListener, it also works fine.

      Even if you add a ChangeListener to the same Binding object you bound your InvalidationListener to, the InvalidationListener suddenly starts to work as well.

            msladecek Martin Sládeček
            apabstjfx Andreas Pabst (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: