1 Reply Latest reply on Apr 7, 2015 5:22 AM by michpetrov

    rich tree, refresh tree don`t work  after delete or add node

    modachrist

      when I add or remove a node , the tree don`t automatic reload. After  I use richfaces 4 , and I like to set a different icon for Node there are currently selected,it don`t work correctly. could I have any suggestions?

       

      that ist my tree:

       

      <t:fieldset style="width:20em;" styleClass="odd">

                          <rich:tree id="klassenTree" styleClass="klassenTree"

                              style="width:200px;" nodeFace="#{item.face}"

                              nodeSelectListener="#{pc.processSelection}"

                              reRender="buchungskonten" ajaxSubmitSelection="true"

                              switchType="server" value="#{pc.treeNode}" var="item"

                              ajaxKeys="#{null}" toggleOnClick="true" >

       

                              <rich:treeNode type="node" icon="/weblets/icons/cprj_obj.gif"

                                  iconLeaf="/weblets/icons/cprj_obj.gif" >

                                  <h:outputText value="#{item.name}" />

                              </rich:treeNode>

                              <rich:treeNode type="folder"  rendered="#{item.name==workflow.value.name or item.name==workflow.value.parent.name }"

                                  icon="/weblets/icons/folder.gif"

                                  iconLeaf="/weblets/icons/folder.gif" >

                                  <h:outputText value="#{item.name}" />

                              </rich:treeNode>

                              <rich:treeNode type="folder" rendered="#{item.name!=workflow.value.name and item.name!=workflow.value.parent.name }"

                                  icon="/weblets/icons/closedFolder.gif"

                                  iconLeaf="/weblets/icons/closedFolder.gif">

                                 

                                  <h:outputText value="#{item.name}" />

                              </rich:treeNode>

                          </rich:tree>