2 Replies Latest reply on Sep 11, 2010 12:56 PM by Gen Sys

    Tree Component - processTreeSelection method is not invoked

    Gen Sys Newbie

      Hi All,


      I tried to switch from GlassFish v2.1 to GlassFish v3 and I faced some strange behaviour:

      1. java.lang.IllegalArgumentException: In AbstractTreeDataModel rowIndex must be -1 - this I almost sorted out with using RichFaces 3.3.3 Final - richfaces-impl-jsf2-3.3.3.Final.jar

      2. After changing to RichFaces 3.3.3 I continued to face the same problem and I found another suggestion:


          <class-loader delegate="false"/>

          <property name="useBundledJsf" value="true"/>



      After 1 and 2 the tree component start working, but when I select a node the processTreeSelection method is not invoked ...


      This was working quite well on GlassFish v2.1 and RichFaces 3.3.2.SR1.


      Here is the way I define the RichFaces tree component:

      <rich:tree id="structureTree"




        reRender="structureNodesTable, nodesMenu, deviceDetailsPanel, manageStructureNodesPanel"



        ajaxSubmitSelection="true" var="structure" style="height: 750px"


        <rich:treeNode type="node" icon="#{structure.icon}" iconLeaf="#{structure.icon}">

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


        <rich:treeNode type="leaf" icon="#{structure.icon}" iconLeaf="#{structure.icon}">

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




      Do you have any idea where the problem could be?


      Thanks in advance.