GroovyFX
  1. GroovyFX
  2. GFX-20

bind not handled properly as child of titledPane's content node

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.1
    • Fix Version/s: 0.2
    • Labels:
      None
    • Number of attachments :
      0

      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

          People

          • Assignee:
            Dean Iverson
            Reporter:
            Dean Iverson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: