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

Declarative (Bi-)-directional Databinding from FXML to Controller

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7u40
    • javafx

      I'm confused whether there is a way to do declarative (bidirectional-) databinding from the FXML to the controller.

      I saw this ticket: https://javafx-jira.kenai.com/browse/RT-17646

      and tried


      <Label prefWidth="200.0" text="#{test}"/>

      Now I'm getting this exception:

      javafx.fxml.LoadException: Bi-directional binding is not enabled.



      I looked into the code of the FXMLLoader and saw that there has to be an System Property to be set. How to handle this situation?

      If there is no official way to do this right now, than this is a feature request for doing this, otherwise please tell me how to do it.

            ekrejcir Eva Krejčířová (Inactive)
            acasalljfx Alexander Casall (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: