2 Replies Latest reply on Nov 7, 2012 3:38 AM by sriharsha chaitanya

    Navigation using rich:tree

    sriharsha chaitanya Newbie



      I am trying to implement tree style navgtion with richt:ree and able to display and  trigger TreeSelectionChangeEvent.

      Anyone help me how to redirect to other page


      Here is my code sample



      public void selectedListnerTree(TreeSelectionChangeEvent selectionChangeEvent) throws AbortProcessingException {


         UITree tree = (UITree) selectionChangeEvent.getSource();

        currentSelection = (UserTree) tree.getRowData();

          FacesContext fc =  FacesContext.getCurrentInstance();

           fc.getApplication().getNavigationHandler().handleNavigation(fc, null, "index");



        System.out.println("I am working"+currentSelection.getName());




      But its not working