Re: FXML, Presentation Model bi-directional binding

2014-01-21 Thread Philipp Dörfler
The only thing you have to do is to write a controller and put myTextBox.textProperty().bindBidirectional(dataModel.textProperty()); into the initialize method. It's way less convenient than it could and should be but at least that gets you bidirectional binding. For a working example featuring a

RE: FXML, Presentation Model bi-directional binding

2014-01-21 Thread Will Hoover
, 2014 7:15 AM To: Martin Sladecek Cc: openjfx-dev@openjdk.java.net Subject: Re: FXML, Presentation Model bi-directional binding The only thing you have to do is to write a controller and put myTextBox.textProperty().bindBidirectional(dataModel.textProperty()); into the initialize method. It's way

Re: FXML, Presentation Model bi-directional binding

2014-01-20 Thread Richard Bair
Sadly, still not possible :-(. Though I still think it's a great way to go! On Jan 20, 2014, at 7:45 PM, Christian Schudt christian.sch...@gmx.de wrote: Hi together, I just (re-)read Richard's excellent article http://fxexperience.com/2011/10/fxml-why-it-rocks-and-the-next-phase/ He

Re: FXML, Presentation Model bi-directional binding

2014-01-20 Thread Martin Sladecek
Related JIRA issue: https://javafx-jira.kenai.com/browse/RT-17646 Uni-directional binding is possible using ${path.to.property} syntax (see http://docs.oracle.com/javafx/2/api/javafx/fxml/doc-files/introduction_to_fxml.html#expression_binding) -Martin On 01/20/2014 08:42 PM, Richard Bair