1 Reply Latest reply on Aug 3, 2007 5:27 AM by Yevgen Tester

    tree example from trunk doesn't work with new version

    Yevgen Tester Newbie

      I'm using tree-demo from http://anonsvn.jboss.org/repos/richfaces/trunk/samples/

      with library from 2 August, with Tomcat 5.5

      I see the all controls, but i can't select any node. In old version (from may 2007) i saw all nodes as link, but now ... nothing. Then i clicked nothing happens.

      this is a screenshot

      [img]http://www.freeimagehost.eu/image/57293b696923[/img]

      this is the same code, but with old libraries (from 30.05.2007)
      [img]http://www.freeimagehost.eu/image/75865e696942[/img]

      You can see that the node is as link. And i receive the selection.

      Thank you.

        • 1. Re: tree example from trunk doesn't work with new version
          Yevgen Tester Newbie

          i saw in html-source-code and found that with the new library the tree node has an onclick=" " method.

          <table border="0" cellpadding="0" cellspacing="0" id="_id2:testTree:2:_id17" style="width: 100%;" rich:nodeId="_id17"><tbody><tr id="_id2:testTree:2:_id17:mainRow" onclick=" ">
          


          with the old library no

          <table border="0" cellpadding="0" cellspacing="0" id="_id2:testTree:1:_id17" style="width: 100%;" rich:nodeId="_id17"><tbody><tr id="_id2:testTree:1:_id17:mainRow">
          


          maybe this is a problem?
          how i can configure the tree to fix the problem?

          this is the tree-code from the trunk example jsp.

          <rich:tree id="tree" switchType="#{bean.switchType}"
           value="#{bean.data}" var="data"
           nodeFace="#{data.name != 'param-value' ? 'input' : 'text'}"
           changeExpandListener="#{bean.onExpand}"
           nodeSelectListener="#{bean.onSelect}" binding="#{bean.tree}"
           ajaxSubmitSelection="true" reRender="outputText, selectOneListbox"
           preserveModel="none"
           dragIndicator="treeIndicator"
           immediate="false"
          
           acceptedTypes="file1"
           dragType="#{bean.dragOn ? 'file1' : ''}"
          
           iconCollapsed="#{bean.iconCollapsed}"
           iconExpanded="#{bean.iconExpanded}"
           iconLeaf="#{bean.iconLeaf}"
           icon="#{bean.icon}"
           dropListener="#{bean.processDrop}">