Controllers allowed on arbitrary nodesLarge controls usually have many action methods, many controls injected with the @FXML annotation and typically other objects like DAOs which can get quite messy. Sometimes handling code for a single control such as a combo box can get quite large, creating an FXML for a small control seems like overkill.
To tackle this, it would be useful to allow the fx:controller attribute on any FXML element specifying a node that is loaded into the scene graph. This 'sub-controller' would have controls injected with @FXML annotations in the same way as root controller except that the it would not be able have it's parent controls injected. Only the element it is declared on or that element's children could be injected.