4 Replies Latest reply on Mar 8, 2010 9:05 AM by Geza Takach

    Arrow keyboard keys close/open rich:tree

    Geza Takach Newbie

      We use rich tree to get data set for a structure using a code like that:

       

                              <rich:tree id="tree" style="width: 980px;" switchType="client" adviseNodeOpened="#{treeSettings.adviseNodesOpened}">
                                  <rich:treeNodesAdaptor id="product" nodes="#{mybean.product}" var="product">
                                      <rich:treeNode>
                                          <rich:simpleTogglePanel switchType="client" label="Product data" opened="#{treeSettings.leavesOpened}">
                                          </rich:simpleTogglePanel>
                                      </rich:treeNode>

       

                                      <rich:treeNodesAdaptor id="main_parts" nodes="#{product.mainparts}" var="mainpart" >
                                          <rich:treeNode>
                                              <rich:simpleTogglePanel ... >
                                              </rich:simpleTogglePanel>
                                           </rich:treeNode>

                                           <rich:treeNodesAdaptor id="sub_parts" nodes="#{product.subparts}" var="subpart" >
                                               <rich:treeNode>
                                                   <rich:simpleTogglePanel ... >

                                                   </rich:simpleTogglePanel>

                                                </rich:treeNode>

                                              <%--  More deep recursion...   --%>

                                           </rich:treeNodesAdaptor>

                                      </rich:treeNodesAdaptor>

                                    </rich:treeNodesAdaptor>

                                  <rich:tree>

       

      On the panels there are JSF input controls, including <h:inputText>. When I press an arrow key (left or right), then it opens/closes a subtree, even if an inputText component gets focus and the user want to use the arrow keys to position inside the textbox.

       

      Is it possible somehow to change this functionality of the tree? In fact, I do not need keyboard shortcut at all, disable tham at all would be also a solution to my problem.

       

      Where can I get info about this functionnig of the rich:tree component?