Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.1
-
Fix Version/s: 0.2
-
Labels:None
-
Number of attachments :
Description
The following code causes the exception:
titledPane(text: 'Hello') {
content {
t = tableView(items: bind(model.itemsProperty())) {
}
}
}
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[]' with class 'org.codehaus.groovyfx.javafx.binding.PropertyBinding$PropertyFullBinding' to class 'javafx.scene.Node'
at groovyx.javafx.factory.TitledFactory.setChild(TitledFactory.groovy:43)
Interestingly, without the content node, this works fine.
Activity
Dean Iverson
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
The following code causes the exception:
{code} titledPane(text: 'Hello') { content { t = tableView(items: bind(model.itemsProperty())) { } } } {code} org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[]' with class 'org.codehaus.groovyfx.javafx.binding.PropertyBinding$PropertyFullBinding' to class 'javafx.scene.Node' at groovyx.javafx.factory.TitledFactory.setChild(TitledFactory.groovy:43) Interestingly, without the content node, this works fine. |
The following code causes the exception:
{code} titledPane(text: 'Hello') { content { t = tableView(items: bind(model.itemsProperty())) { } } } {code} org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[]' with class 'org.codehaus.groovyfx.javafx.binding.PropertyBinding$PropertyFullBinding' to class 'javafx.scene.Node' at groovyx.javafx.factory.TitledFactory.setChild(TitledFactory.groovy:43) Interestingly, without the content node, this works fine. |