0 Replies Latest reply on Jun 30, 2011 9:21 AM by Marcel Bussien

    NodeSelectedEvent: getRowKey not found in UITree

    Marcel Bussien Newbie


      when I processSelection in <rich:tree nodeSelectListener="#{treeController.selectTreeNode}"
      the treeController with
      private String nodeTitle;
      private UITree utree;
      private TreeRowKey rowKey;
         public void selectTreeNode(NodeSelectedEvent event){
      utree = (UITree) event.getComponent();
      rowKey=(TreeRowKey)utree.getRowKey();
      it tells me that getRowKey() is undefined for UITree

       

      whats wrong?

       

      jboss-seam-2.2.2.Final imports:
      import org.jboss.seam.ui.util.HTML;
      import org.jboss.seam.ui.component.html.HtmlCache;
      import org.richfaces.event.NodeSelectedEvent;
      import org.richfaces.event.NodeSelectedListener;
      import org.richfaces.model.TreeRowKey;

       

      thanks for any help