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 - [74cat] Make Controller fails to inject Private variables (control fx:id )
Summary: [74cat] Make Controller fails to inject Private variables (control fx:id )
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Visual Tool Integration (show other bugs)
Version: 7.4
Hardware: PC All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on: 236509
Blocks:
  Show dependency tree
 
Reported: 2013-10-01 20:04 UTC by Lou Dasaro
Modified: 2013-12-20 03:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.