Comments (3)
You cannot directly inject Presenter objects like you are trying to do, all the FXML stuff will not be done. Either you have to use the View object by instantiating it manually and call #getPresenter(), or you have to extract some functionality to a service object that you could both inject in your 2 Presenters.
from afterburner.fx.
I solved it instantiating manually and calling getPresenter().
Thanks.
from afterburner.fx.
McFoggy: thanks for your support :-)
OpsRJ: In afterburner.fx all injected instances become Singletons. However: there could be multiple instances of View - Presenter pairs. In fact in the example application there are 257. Thanks for using afterburner!
from afterburner.fx.
Related Issues (20)
- Topgun 1.6.3 Release HOT 5
- How to use dagger2 as a dependency injection? HOT 1
- in r1.7.0, why is there a package "topgun" and "lifecycle"
- set different ResourceBundle for different Views HOT 4
- Dependency-Injection for superclasses..... HOT 2
- groovy compatibility
- System.err.println("File: " + name + " not found, attempting with camel case"); HOT 4
- How to navigate between scenes / nested scenes? HOT 1
- Injection context ignored for presenter members at first HOT 3
- afterburner.fx not working with java 9 HOT 3
- FXMLView as custom control for Scene Builder HOT 1
- @Inject can not works in method call of task thread
- Creation before injection
- Provide additional information about injecting fields
- inject ObservableList HOT 1
- [Advice] CSS not loading
- IllegalStateException: while synchronous loading of fxml
- Inject ints? HOT 1
- Leading slash in getResource() HOT 1
- Maven artifact for this project is a shaded jar, which breaks modules HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afterburner.fx.