This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236620

Summary: [74cat] Make Controller fails to inject Private variables (control fx:id )
Product: javafx Reporter: Lou Dasaro <mr_lou_d>
Component: Visual Tool IntegrationAssignee: Svata Dedic <sdedic>
Status: VERIFIED FIXED    
Severity: normal CC: sdedic
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: All   
See Also: https://netbeans.org/bugzilla/show_bug.cgi?id=236559
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 236509    
Bug Blocks:    

Description Lou Dasaro 2013-10-01 20:04:49 UTC
Make Controller fails to inject Private variables (control fx:id )

Purpose: Test NetBeans FXML support.
Setup: Java Platform 7u25 or 7u40 and JavaFX Scene Builder 1.1 GA installed.

Create New FXML Application in NetBeans 
   Invoke File | New Project... from main menu. "New Project" wizard shows up.
   In the first step of the wizard select "JavaFX" category and "JavaFX FXML Application" project. Push Next > button.
   Keep all default settings and push Finish.
   In the Project View, Double-click on "FXMLDocument.fxml", which should open the selected FXML file in JavaFX Scene Builder 1.1 GA
   In Scene Builder, from the Library of Controls (upper left), drag a Button control onto the Anchor Pane next to the existing button. Click on the "Code" tab for this new Button control (bottom right) and the Code tab will expand. In the entry field for "fx:id" type: "Button2" and press enter. Save the file. Close Scene Builder.
   In NetBeans, right-click on "FXMLDocument.fxml" and click on "Make Controller"

EXPECTED RESULT: "FXMLDocumentController.java" is updated with the Private variable for the new button (fx:id), i.e. 
    @FXML
    private Button Button2;

ACTUAL RESULT: The variable is NOT injected.

REASON: See Bug 236509 and Bug 236559
Comment 1 Svata Dedic 2013-10-02 08:49:36 UTC
Fixed as a side effect of issue #236509
Comment 2 Lou Dasaro 2013-10-04 08:12:22 UTC
Is blocked until bug 236509 fix becomes a 7.4 patch.