posted 1 year ago
Here is a runnable simplified example. I know that risks.get(2) is an incorrect assignment. I put it there to show what is desired, but I think it made it more confusing.
The bidirectional binding of the list of values is working correctly, but I also wanted a binding for the selected value.
If "accountRisk.selectionModelProperty()..." is uncommented, it seems to be competing with the user selected value.
I just wanted the binding to set the initial value and then allow the user to change it which then bidirectionally sets the selected value back in the ViewModel.
Sorry for the confusion, it was late on Sunday when I gave up trying to make this work.