0 Replies Latest reply on Apr 22, 2008 6:28 AM by hooj

    rich:tree - expand and select works only after new rendering

    hooj

      Hallo,

      i have some problems with a richtree-component. When accessing the component first time it works in Firefox 2.0.0.13 and IE 6, IE7 only after a rerender of the page. After reopening the browser and accessing the page with the tree-component it works even without rerendering. Here ist the code snippet. Does anyone the reason of this strange problem?

      <h:panelGroup style="width: 140px;display: block;overflow-x: scroll;overflow-y:visible;">
      <rich:tree id="kategorieTree" adviseNodeOpened="#{fotopageBean.adviseNodeOpened}" highlightedClass="highlightedTreeNode" nodeSelectListener="#{fotopageBean.processSelection}" reRender="bildliste,thumbScroller" ajaxSubmitSelection="true" switchType="client">
      <rich:recursiveTreeNodesAdaptor roots="#{fotopageBean.bildkategorieHierarchie}" var="item" nodes="#{item.subKategorien}">
      <rich:treeNode iconLeaf="#{item.icon}" icon="#{item.icon}">
      <h:outputText styleClass="treenodestyle" value="#{item.name}" />
      <rich:toolTip styleClass="linkstyle" rendered="#{not empty item.beschreibung}" followMouse="true" direction="top-right" showDelay="500">

      <h:outputText styleClass="labelStyle" value="#{item.beschreibung}"/>

      </rich:toolTip>
      </rich:treeNode>
      </rich:recursiveTreeNodesAdaptor>
      </rich:tree>
      </h:panelGroup>