1 Reply Latest reply on Apr 29, 2007 3:23 PM by Nick Belaevski

    a few question about tree

    vivian hu Novice

      1. How to show the root node?
      2. How come my tree node is shown as a toString() of that node class, instead of the name of that class.

      <rich:tree style="width:300px" value="#{treeBean.data}"
      <rich:treeNode type="root">
      <h:outputText value="#{item.type}" />
      <rich:treeNode type="child">
      <h:outputText value="#{item.name}" />
      Since I did specified a outputText treeNode for the "root", how come it is not showing.

      For my tree node class with a type "child", I do have a getName(), setName() which should return a nice string instead of toString() of that class. But why it is showing toString()?