3 Replies Latest reply on Aug 8, 2012 5:47 PM by rbid

    Replacement for adviseNodeSelected in RichFaces 4.1

    ekric

      Hi,

      I'm currently trying to migrate a RichFaces 3.3.2.SR1 project to RichFaces 4.1.0 Final.

       

      <h:form>
           <rich:tree var="item" switchType="ajax" id="fileTree"
                iconCollapsed="/img/famfamfam/folder.png"
                iconExpanded="/img/famfamfam/folder.png"
                iconLeaf="/img/famfamfam/folder.png"
                selectionChangeListener="#{fileSystemBean.processSelection}"
                adviseNodeSelected="#{fileSystemBean.adviseNodeSelected}" >
                <a4j:ajax event="selectionchange" render="wholeContent"
                     execute="@all" />
                <rich:treeModelRecursiveAdaptor
                     roots="#{fileSystemBean.sourceRoots}" nodes="#{item.nodes}" />
                <rich:treeModelRecursiveAdaptor roots="#{searchBean.roots}"
                     id="searchAdaptor" />
           </rich:tree>
      </h:form>
      

       

      In the old version there is an attribute used called adviseNodeSelected, which decides about the node beeing selected. Unfortunately this paramater seems to be out of order in 4.1.

       

      What would be the best practice to realize this, do I have to write a Java Script?

       

      Cheers

      Eric