I am not able to use groovy script files (via <fx:script source="TestControl.groovy"/>). I get the following exception:
02.08.2011 00:54:47 javafx.fxml.FXMLLoader logException
SCHWERWIEGEND: The following error occurred at line 20 in file /E:/Development/System/CVP.CPOS/JavaFXApplication2/build/classes/javafxapplication2/fxmltest/TestControl.xml:
Unable to locate scripting engine for extension groovy.
02.08.2011 00:54:47 javafxapplication2.JavaFXApplication2 start
SCHWERWIEGEND: null
javafx.fxml.LoadException: Unable to locate scripting engine for extension groovy.
at javafx.fxml.FXMLLoader$ScriptElement.processStartElement(FXMLLoader.java:826)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:1410)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1309)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1834)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1819)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1814)
at javafxapplication2.JavaFXApplication2.start(JavaFXApplication2.java:33)
at com.sun.javafx.application.LauncherImpl$4.run(LauncherImpl.java:163)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:124)
at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:100)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)
at java.lang.Thread.run(Thread.java:662)
----
I guess its just an "extension detection"-problem... embedded scripts like the following do work fine.
<Button fx:id="buttonTest" text="Test Button" onAction="inputTest1.text = "test""/>
02.08.2011 00:54:47 javafx.fxml.FXMLLoader logException
SCHWERWIEGEND: The following error occurred at line 20 in file /E:/Development/System/CVP.CPOS/JavaFXApplication2/build/classes/javafxapplication2/fxmltest/TestControl.xml:
Unable to locate scripting engine for extension groovy.
02.08.2011 00:54:47 javafxapplication2.JavaFXApplication2 start
SCHWERWIEGEND: null
javafx.fxml.LoadException: Unable to locate scripting engine for extension groovy.
at javafx.fxml.FXMLLoader$ScriptElement.processStartElement(FXMLLoader.java:826)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:1410)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1309)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1834)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1819)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1814)
at javafxapplication2.JavaFXApplication2.start(JavaFXApplication2.java:33)
at com.sun.javafx.application.LauncherImpl$4.run(LauncherImpl.java:163)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:124)
at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:100)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)
at java.lang.Thread.run(Thread.java:662)
----
I guess its just an "extension detection"-problem... embedded scripts like the following do work fine.
<Button fx:id="buttonTest" text="Test Button" onAction="inputTest1.text = "test""/>