3 Replies Latest reply: Jan 14, 2013 10:52 PM by user6714790 RSS

    Add controller to FXML

    user6714790
      I have two menu items named "Name" and "Help" in my fxml file with a Menuitem controller.

      on Clicking of "Name" menu item , I load a fxml document with Gridpane as its root.

      When I add a controller to this newly loaded fxml document , I get the following error :

      javax.xml.stream.XMLStreamException: ParseError at [row,col]:[14,271]
      Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributePrefixUnbound?GridPane&fx:controller&fx

      Kindly help me resolve this error.