-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inject ObservableList #81
Comments
You can create your own presenter factory, which (i.g. via a hashmap, containing the field name and the observable list as a value) and inject this into a constructor. Alternatively, using the configuration properties. Those are used during field injection. A possible constructor injection would look something like this:
Keep in mind, you still need a view which provides the observable (hashmap => map::get) or provide trough the instance supplier an object. Hashmap approach:
|
I'm very new to afterburner and want to inject an ObservableList and try the following code:
Exception:
java.lang.IllegalStateException: Cannot instantiate view: interface javafx.collections.ObservableList
what can i do?
Thanks.
The text was updated successfully, but these errors were encountered: