3 Replies Latest reply on Sep 25, 2007 5:13 AM by tamri

    Expand <rich:tree...

    tamri

      When I try to expand tree node from code, it doesn't work. code is:
      uiTree.queueNodeExpand(treeRowKey);
      it doesnt work.
      enything is wrong?

        • 1. Re: Expand <rich:tree...
          maksimkaszynski

          Please provide code snippet

          • 2. Re: Expand <rich:tree...
            tamri

            public void selectTreeNode(NodeSelectedEvent event)
            {

            utree = (UITree) event.getComponent();
            rowKey=(TreeRowKey) utree.getRowKey();
            }

            • 3. Re: Expand <rich:tree...
              tamri

              public class testBean
              {
              private UITree utree;
              private TreeRowKey roeKey;
              public void selectTreeNode(NodeSelectedEvent event)
              {

              utree = (UITree) event.getComponent();
              rowKey=(TreeRowKey)utree.getRowKey();
              }
              }
              after some operation(go another page and then return on this page)
              call method
              public String expandNode()
              {
              utree.queueNodeExpand(rowKey);
              return "success";
              }

              this bean is sessionscope, so then i return on the treepage and call expandNode method it doesn't work;
              is enything wrong?