Allow Controller Component injection via setter methods (@FXML)

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 7u15
    • Component/s: javafx

      When using CDI to managed controllers, one can not mark a controller as @ApplicationScoped
      because:
      - @FXML on private fields do not get populated as the controller instance is a proxy instance which does not export private fields
      - public fields can not be used as @ApplicationScoped does not allow for public fields

      If FXML Loader inject Controller Fields via setter method a controller could be annotated as @ApplicationScoped

            Assignee:
            Unassigned
            Reporter:
            Anahata Technologies (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: