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 244563 - improve broken mappings between FXML files, controller and related resources detection
Summary: improve broken mappings between FXML files, controller and related resources ...
Status: NEW
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-17 08:56 UTC by pablopina
Modified: 2014-05-19 06:42 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pablopina 2014-05-17 08:56:10 UTC
Would be great if NB could highlight any broken references in FXML and controller classes such as

-controller names
-missing imports
-relative urls in fxml file that do not resolve to an existing file (e.g. images, css files, etC)
-wrong imports
-elements annotated as @FXML which do not have a valid mapping (fx:id) in the FXML file and/or warnings for elements with a fx:id for which there is no component in the controller
-wrong action methods (yai, this is done already)

Would also be interesting to discuss whether these kind of errors should mark the project (in the projects view) as having errors.

The one weakness i see in JSF or FXML is that there is no compilation of these files and very often errors are found at runtime. I saw how NB improved validation of EL expressions in JSF over time and it would be great if the same level of validation was applied to JavaFX development.