when using ItemViewModel how does one handle an em...
# tornadofx
a
when using ItemViewModel how does one handle an embedded property path ? e.g. suppose you have a Person that has an address attribute i.e. where in a Address object resides, and one is building a single UI to represent that and thus would want to do something as such:
Copy code
...
field("street address") {
   textfield(model.address.streetAddress) 
}
I have generated the domain objects and their properties and corresponding ItemViewModel i.e. for Person and Address i.e. via Intellij TornadoFX plugin, yet streetAddress in not available from model.address ? Clearly I have a gap in my understanding Is it possible to specify an aspect path as illustrated above ? What is the typical, idiomatic approach to handling embedded objects ? One approach that I can think off would be to great a seperate View for the Address object but not sure if that would be the most appropriate approach for all embedded object scenarios. thanks