5 Replies Latest reply on Feb 11, 2011 6:08 AM by caarlos0

    tree node selection on right click

    abcd1

      Dear All

       

                  In my applicaiton i need to select the tree node on mouse right click..

                  is it possible to select the tree node on right click

       

                  I am using richfaces 3.3.0

       

                  the code is like

       

      <rich:tree id="formsta9Tree" value="#{formsta9.treeNode}" var="item"
                          binding="#{formsta9.richTree}" treeNodeVar="treeNode"
                          onclick="feldInitFormsta9('7005');" ajaxSubmitSelection="true"
                          preserveModel="state"
                          onmousedown="this.setSelection(this)"
                          iconLeaf="#{treeNode.leafIcon}"
                          nodeSelectListener="#{formsta9.nodeClick}" rowKeyVar="rowkey"
                          oncomplete="showMsgPanelModified();document.getElementById('PageForm:renderContext').onclick();"
                          reRender="msgpanel,editor,buttonPanel,toolBarPanel,EF-DESCRIPTION_7035,contextEnabled"
                          toggleOnClick="false">
                 
                      </rich:tree>

       

       

      Thanks in advance

      Cheers!!!