You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A View has an injectable class for field assignment, but Fragments do not.
At the moment, I'm left with two unsavory choices:
use a fragment to recycle views, but heavy load drag and drop functionality in every instance (and mashing together VC) or
keep the V and C separated and clean but using a view means I cannot recall a scope on init (edited)
I'll let you know what solution I stumble upon, but some thoughts I have, and in no particular ranking of bad to good or the likes, are the following:
a fragment that uses find seems to have a java stack overload, as expect for something this heavy-duty when using a controller as a global field. Scope in scope. sounds terrible right off the bat
eventbus - trigger a call for a new scope upon switching back to the view
create a special component similar to a fragment, but only for the view so a lazy load can be called once for class injection, but the view itself clears every time
The text was updated successfully, but these errors were encountered:
One proposal from @bekwam: comparing some javafx code to tornadofx... you could also make the single instance selected property part of the view model. A selection on the TableView (master) sets single instance which can be picked up through injection in the details fragment
A View has an injectable class for field assignment, but Fragments do not.
At the moment, I'm left with two unsavory choices:
I'll let you know what solution I stumble upon, but some thoughts I have, and in no particular ranking of bad to good or the likes, are the following:
The text was updated successfully, but these errors were encountered: