2 Replies Latest reply on Aug 12, 2009 10:40 AM by ZJ DA

    What does treeNodeVar point to?

    ZJ DA Newbie

      Hi, The following is my code for a tree:

      <rich:tree id="workspace_navtree" value="#{navTree.root}" var="objectBean" treeNodeVar="treeNode" switchType="ajax" ajaxSubmitSelection="true" nodeFace="#{objectBean.typeName}" dropListener="#{navTree.dropListener}" componentState="#{navTree.treeState}" binding="#{navTree.uiTree}">
       <rich:treeNode type="#{objectBean.typeName}" acceptedTypes="#{treeNode.allowedChildTypeString}" dropValue="#{treeNode}" dragIndicator=":treeindicator" dragType="#{objectBean.typeName}" nodeSelectListener="#{navTree.nodeSelectListener}" data="#{treeNode}" icon="#{treeNode.icon}">
       ...
      


      The root is ObjectBeanNode which returns ObjectBean for getData() method. It seems to me that treeNodeVar="treeNode" makes treNode point to a ObjectBeanNode object since icon="#{treeNode.icon}" works correctly. However, acceptedTypes="#{treeNode.allowedChildTypeString}" causes exception:


      Caused by: javax.el.PropertyNotFoundException: /pages/user/workspace/workspace.jsp @73,78 acceptedTypes="#{treeNode.allowedChildTypeString}": Property 'allowedChildTypeString' not found on type org.richfaces.model.CacheableTreeNodeImpl


      Any explanation please?

      Thanks,
      -ZJ