Details
Description
I'm using 8u20 build 10 and after loading my fxml which includes ids for TableColumns, when I check for the ids, they are null.
It's interesting to note that all the TableColumns are properly injected and usable but when their .getId() method is invoked, they return null! The TableView and Buttons in the screen don't loose their ids, it's just the TableColumns
I have not seen this in any other Node/Control
<fx:root type="MigPane" fx:id="migPaneRoot" prefHeight="400.0" prefWidth="700.0" xmlns:fx="http://javafx.com/fxml">
<TableView fx:id="table_TV" editable="true" layoutX="75.0" layoutY="78.0" prefHeight="400.0" prefWidth="650.0" MigPane.cc="wrap">
<columns>
<TableColumn text="Display Name" fx:id="displayName_CO" minWidth="80.0"/>
<TableColumn text="Location" fx:id="praclocation_CO" minWidth="80.0"/>
<TableColumn text="FullName" fx:id="fullName_CO" minWidth="80.0"/>
<TableColumn text="Show/Active" fx:id="show_CO" minWidth="80.0"/>
<TableColumn text="Provider No" fx:id="providerNo_CO" minWidth="80.0"/>
<TableColumn text="Status" fx:id="status_CO" minWidth="80.0"/>
<TableColumn text="Practitioner Type" fx:id="practitionerType_CO" minWidth="80.0"/>
</columns>
</TableView>
<Button text="save" onAction="#saveAction" fx:id="save_BTN" MigPane.cc="split"/>
<Button text="Cancel" onAction="#cancelAction" fx:id="cancel_BTN"/>
</fx:root>
{
FXMLLoader fxmlLoader = new FXMLLoader(fxmlFileUrl);
fxmlLoader.setRoot(viewRoot);
fxmlLoader.setController(controller);
fxmlLoader.load();
}
It's interesting to note that all the TableColumns are properly injected and usable but when their .getId() method is invoked, they return null! The TableView and Buttons in the screen don't loose their ids, it's just the TableColumns
I have not seen this in any other Node/Control
<fx:root type="MigPane" fx:id="migPaneRoot" prefHeight="400.0" prefWidth="700.0" xmlns:fx="http://javafx.com/fxml">
<TableView fx:id="table_TV" editable="true" layoutX="75.0" layoutY="78.0" prefHeight="400.0" prefWidth="650.0" MigPane.cc="wrap">
<columns>
<TableColumn text="Display Name" fx:id="displayName_CO" minWidth="80.0"/>
<TableColumn text="Location" fx:id="praclocation_CO" minWidth="80.0"/>
<TableColumn text="FullName" fx:id="fullName_CO" minWidth="80.0"/>
<TableColumn text="Show/Active" fx:id="show_CO" minWidth="80.0"/>
<TableColumn text="Provider No" fx:id="providerNo_CO" minWidth="80.0"/>
<TableColumn text="Status" fx:id="status_CO" minWidth="80.0"/>
<TableColumn text="Practitioner Type" fx:id="practitionerType_CO" minWidth="80.0"/>
</columns>
</TableView>
<Button text="save" onAction="#saveAction" fx:id="save_BTN" MigPane.cc="split"/>
<Button text="Cancel" onAction="#cancelAction" fx:id="cancel_BTN"/>
</fx:root>
{
FXMLLoader fxmlLoader = new FXMLLoader(fxmlFileUrl);
fxmlLoader.setRoot(viewRoot);
fxmlLoader.setController(controller);
fxmlLoader.load();
}