0 Replies Latest reply on Sep 16, 2010 8:37 AM by Christian Kloy

    Tree don't expand with ajax switch

    Christian Kloy Newbie

      Hello,

       

      i use a rich:tree component in a modalPanel and that the "switchType" to "ajax", but the nodes don't get expaned. If i use switchType="client" everything is working as expected. But there are serious performance problems if i us switchType="client".

      I use RF 3.3.3, JSF 1.2_14 RI on a Tomcat 6.0.26. That's the code:

       

      <rich:modalPanel id="arbeitskorbPanel" width="320" height="360" style="overflow:auto;" styleClass="schrift">
              <f:facet name="header">
                  <h:panelGroup>
                      <h:outputText value="Arbeitskorb"></h:outputText>
                  </h:panelGroup>
              </f:facet>
              <f:facet name="controls">
                  <h:panelGroup>
                      <h:graphicImage value="/bilder/close.png" styleClass="hidelink"
                          id="hideArbeitskorb" />
                      <rich:componentControl for="arbeitskorbPanel" attachTo="hideArbeitskorb"
                          operation="hide" event="onclick" />
                  </h:panelGroup>
              </f:facet>
              <a4j:outputPanel id="arbeitskorbDetails">
                  <a4j:form ajaxSubmit="true" id="arbeitskorbForm">
                      <rich:tree id="arbkorbTree" value="#{fusszeile.arbeitskorb}" var="vlitem"
                          toggleOnClick="true" switchType="ajax" adviseNodeOpened="#{fusszeile.nodeOpened}"
                          binding="#{fusszeile.arbeitskorbTree}">
                          <rich:treeNode iconExpanded="/bilder/ordnerauf.gif" iconCollapsed="/bilder/ordnerzu.gif" icon="/bilder/space.gif"
                              iconLeaf="/bilder/treeviewarbeitskorb.gif" rendered="#{vlitem.knoten}">
                              <h:outputText value="#{vlitem.text}" styleClass="schrift baumText"/>
                          </rich:treeNode>
                          <rich:treeNode icon="/bilder/ordnerauf.gif" iconLeaf="/bilder/treeviewarbeitskorb.gif"
                              nodeSelectListener="#{fusszeile.selectArbeitskorb}" rendered="#{not vlitem.knoten}">
                              <h:outputText value="#{vlitem.text}" styleClass="schrift baumText" />
                              <a4j:support event="onclick" action="arbeitskorb" />
                          </rich:treeNode>
                      </rich:tree>
                  </a4j:form>
              </a4j:outputPanel>
          </rich:modalPanel>
      

       

      The leafs work as expected but the nodes dont get expanded.

       

      Best Regards

      Christian