0 Replies Latest reply on Mar 27, 2008 7:41 PM by lovina Kodwaney

    Lazy Loading & capturing expanded node in rich tree

    lovina Kodwaney Newbie

      I am working with rich tree and looking at lazy loading the rich tree. In other words, I want to load just one or two levels of the tree on the first go and then as a node is expanded, I want to fetch its children.

      In order to achieve this, I want to capture the node that was expanded. I tried changeExpandListener but it gives me a ClassCastException while trying to cast the HTmlTree into a UIComponent as below:

      javax.faces.component.UIComponent comp = (javax.faces.component.UIComponent)event.getComponent();

      I also tried using onExpand attribute within the tree but it does not get fired.

      Anyone done this before?