I followed this example to bind some textfield: Example of using Bindings for validation in JavaFX. by james-d
Now, I would like to know if it is possible to do the same with the columns of a table.
That is, when an empty top row is changed, if certain cells of certain columns are filled, then, the entered data has to be saved in a database.
After that, I do not know if it can be useful for troubleshooting, must appear a notification made by ControlFx package that says that the data was saved. The notification must appear is this
SOLVED BUT NOT WITH BINDING
I solved my problem in this way:
- Added a table.refresh() in commitEdit in the setCellFactory
- Add a column with save button that check if the other cells is empty or not. If the cells are empty the save button automatically is disabled, otherwise, you can save.