In a project i'm currently working on I have a cus...
# tornadofx
m
In a project i'm currently working on I have a custom wizard with multiple pages (views). For every page I have a controller which handles the business logic. Every page requires some data to be filled in by the user. What would be the best way to temporarily save all of this data until the wizard is completed.
k
Would using a data class work? That's how I store data while I have them move through multiple views.
m
You need a data model that can be injected into each controller
Or, what I have done for wizard type dialogs is create a single view where each page is a separate tab in the view and the tabs are hidden