Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8097393

TableColumn losing id when loaded from .fxml

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Incomplete
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 8.1 64bit
      java 8u20 build10

      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();
      }

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            hadijfx Hadi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: