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

    Tree Component - processTreeSelection method is not invoked

    gensys

      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:

      <sun-web-app>

          <class-loader delegate="false"/>

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

      </sun-web-app>

       

      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"

        componentState="#{StructureManager_Backing.treeState}"

        value="#{StructureManager_Backing.structureNodes}"

        nodeSelectListener="#{StructureManager_Backing.processTreeSelection}"

        reRender="structureNodesTable, nodesMenu, deviceDetailsPanel, manageStructureNodesPanel"

        eventsQueue="details"

        immediate="true"

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

        nodeFace="#{structure.type}">

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

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

        </rich:treeNode>

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

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

        </rich:treeNode>

      </rich:tree>

       

      Do you have any idea where the problem could be?

       

      Thanks in advance.

       

      RoGGeR.