Actually I was trying to improve the example by Th...
# tornadofx
b
Actually I was trying to improve the example by Thomas Nield. So I wanted to use pure domain data classes. And all the examples with models in tornadofx that i saw use the mutable properties to edit the domain objects. So the simple variant as i see is to make some kind of builder classes with mutable properties in viewmodel, and create the immutable object in doCommit and then pass it to some comanion object method like addAnotherConfig(config: Config) : Observable<Config> and bind it with controller CompositeObservable