-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
8u20, 8u40
When trying to use the CDI specification within a JavaFX application, fields and methods annotated with @FXML are not being injected correctly. The controller class is proxied by Weld (Reference Implementation of CDI). CDI part works fine (@Inject, etc), controller object is instantiated, managed, and returned to FXMLLoader by a custom Callback Controller Factory. Mapped methods directly in the .fxml are accessible and click works.
Problem is with any @FXML annotated method and field.
1) Run application
2) Click button
3) See NPE on console
Sample project on GitHub: https://github.com/brunoborges/weld-cdi-javafx-bug
Problem is with any @FXML annotated method and field.
1) Run application
2) Click button
3) See NPE on console
Sample project on GitHub: https://github.com/brunoborges/weld-cdi-javafx-bug