2 Replies Latest reply on Jan 27, 2008 4:23 PM by Stephen Hart

    Class cast exception when using RichFaces Simple Tree

    Stephen Hart Newbie

      Help ! Please ! I am trying to test the SimpleTreeBean example from RichFaces and am getting the following stack trace. I have essentially cut and pasted the example an deployed to jboss 4.2.2.GA. When I try to bring up the page, I get the below stack trace:

      Ant help to identify the cause would be appreciated.

      Thanks !


      java.lang.ClassCastException: org.richfaces.model.TreeNodeImpl cannot be cast to org.richfaces.model.TreeNode
      at org.richfaces.model.AbstractTreeDataModel.setWrappedData(AbstractTreeDataModel.java:61)
      at org.richfaces.component.UITree.createDataModel(UITree.java:515)
      at org.richfaces.component.UITree.resetDataModel(UITree.java:291)
      at org.ajax4jsf.component.UIDataAdaptor.encodeBegin(UIDataAdaptor.java:1058)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:269)
      at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
      at

      ....