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 242307 - New Empty FXML Wizard fails to change controller name if you hit back and change FXML name
Summary: New Empty FXML Wizard fails to change controller name if you hit back and cha...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-25 03:28 UTC by swpalmer
Modified: 2014-07-20 18:48 UTC (History)
0 users

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 swpalmer 2014-02-25 03:28:00 UTC
Product Version: NetBeans IDE 8.0 RC1 (Build 201402202300)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)

- Create a JavaFX Application project
- Right click the package in the project view and select New -> Empty FXML
- Change the name of the FXML file to "Hello"
- Click Next
- Click Back
- Change the FXML filename to "Goodbye"
- Click Next

Notice that even though "Use Java Controller" was never checked, the default controller name has still been set to HelloController and remains so after selecting "Use Java Controller" with a totally different FXML filename.

Setting of the Controller name could be delayed until "Use Java Controller" is checked, or preferrably, a flag would be set if the name was ever edited from the default and only in that case would it not automatically be regenerated every time you land on that page of the wizard.
Comment 1 swpalmer 2014-02-25 03:28:20 UTC
minor issue.. changing to P4
Comment 2 swpalmer 2014-02-25 03:31:28 UTC
Same issue exists for the generated CSS filename.
Comment 3 Roman Svitanic 2014-07-11 15:31:42 UTC
fixed in jet-main:
http://hg.netbeans.org/jet-main/rev/092165d71f4f
Comment 4 Lou Dasaro 2014-07-20 18:48:10 UTC
Verified Fixed for both Controller and CSS (Comment #2) using 

Product Version: NetBeans IDE Dev (Build 201407200001)
Java: 1.8.0_20-ea; Java HotSpot(TM) Client VM 25.20-b20
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-ea-b21
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)