0 Replies Latest reply on Jan 10, 2008 5:16 AM by Marcin Bednarek

    Busy indicator near node icon in the tree

    Marcin Bednarek Newbie

      Hi,

      How can I show busy indicator "<a4j:status>" near node icon in the tree when I click to expand node or select node?

      I am using richfaces-3.1.3 and jboss-seam 2.0.0.

      My code:

      <rich:tree switchType="ajax">
       <rich:recursiveTreeNodesAdaptor roots="#{folderBean.getChildren(null)}" var="folder" nodes="#{folderBean.getChildren(folder)}">
       <rich:treeNode iconLeaf="/images/iconFolder.gif" icon="/images/iconFolder.gif" status="st">
       <a4j:status id="st" forceId="true">
       <f:facet name="start">
       <h:graphicImage value="/images/ajax_loader.gif" id="waitingimage1" width="16" height="16" />
       </f:facet>
       <f:facet name="stop">
       <h:graphicImage value="/images/blank.gif" id="blankimage1" width="16" height="16" />
       </f:facet>
       </a4j:status>
       <a4j:commandLink reRender="dirView" action="#{folderBean.setCurrentNode(folder)}" value="#{folder.name}">
       <rich:toolTip value="#{folder.version}" rendered="#{folder.version!=null}"/>
       </a4j:commandLink>
       </rich:treeNode>
       </rich:recursiveTreeNodesAdaptor>
      </rich:tree>