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

bindBidirectional with Bean-Adapters on Windows does not always update

    Details

    • Subcomponent:

      Description

      I am noticing a strange problem. Perhaps my code is just plain wrong, but I find it strange, that it just fails on Windows.

      I have a BeanProperty like this:

      StringProperty property = JavaBeanStringPropertyBuilder.create()
                          .bean(beanObject)
                          .name(propertyName)
                          .build();

      And bind it to a TextField like this:

      textField.textProperty().bindBidirectional(property);


      I would assume that all changes to the textField are reflected inside the Bean-Object. But in Windows the bean object is not updated in many cases, only sometimes.

      However, as soon as I add a listener to the textfield it suddently works. The listener does not even have to do something useful (I tried out to update the property manual, but it wasn't necessary at this point).

      It is not specific for TextFields, it also applies to CheckBoxes (selectedProperty).

      It does not seem to be a problem with the text-property of the TextField itself, I tried multiple testcases, it is the conjunction of TextField and its attached property.

      I tested the current version of Java 7 and Java 8 as a Runtime.

        Attachments

          Activity

            People

            • Assignee:
              msladecek Martin Sládeček
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: