Closed ASchmidt84 closed 5 years ago
Bindings are created by the value of the id or fx:id attributes in the fxml file.
If node lookup from application root node does not work, you can fix it by adding a parent Node to FXBeanAdapter.
@FXML
var editPane: GridPane = _
// second parameter parent Node is optional,
// but sometimes needed for the correct NodeLocator lookup
lazy val adapter: FXBeanAdapter[Person] = FXBeanAdapter[Person](this, editPane)
I will try to add some information in the project description.
Remember, bind to non String values needs add converter to the FXBeanAdapter.
adapter.addIntConverter("age")
Hope this will fix your problem.
Greetings Tom
Good Morning Tom, yeah that is the way it rocks :+1:
I would appreciate a documentation. I like your project. And here in my company I forced to used it. It is a great piece of software.
What is about addIntConverter. Their is no such method in FXBeanAdapter. How can I use adapter? Is their a way to use collection in adapter? Sometimes I have an object (is a remote JSON) with an collection inside and I would like to display all of that or sometimes only a field. Thank you
The issue is solved
I have a problem. I created the manufactoroverview.fxml and also the controller. I set up a FXBeanAdapter. And on each change of the selection I set on adapter the new bean. But still no changes. Their should be the textfields setup the content.
The controller