fxml: fx:controller: public handler should be visible without "@FXML" annotation

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • fx2.0
    • Affects Version/s: fx2.0
    • Component/s: javafx
    • None
    • Environment:

      scrum 2681

      attempt to load public fx:contoller method without "@FXML" annotation leads to
      Controller method "handleButtonAction" is not visible to markup.

      with "@FXML" - works fine.
      sample files:
      ________________________________________________
      <VBox fx:controller="com.foo.MyController"
      xmlns:fx="http://javafx.com/fxml">
      <children>
      <Button text="Click Me!" onAction="#handleButtonAction"/>
      </children>
      </VBox>
      _____________________________________________
      package com.foo;
      public class MyController {
      public void handleButtonAction(ActionEvent event) {
      System.out.println("You clicked me!");
      }
      }
      _________________________________________________

            Assignee:
            Greg Brown (Inactive)
            Reporter:
            Victor Shubov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: