cancel
Showing results for 
Search instead for 
Did you mean: 

Set and get of htmlb tree

Former Member
0 Kudos

How do i get the Tree node component in JSPDynpage?

If i use,

TreeNode tn = (TreeNode)this.co........ByName("node1");

I get an error: cannot cast the component to TreeNode.

Iam trying to set values through the set methods of the tree on JSP.

I want the Treenode to be open even after clicking the node.

Ex:Access a node and then

set.Open(true) of that node ..in itz method on Dynpage.

Thanks for all the hints!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Taylor,

YOu could do the following.


public void onNodeClick(Event event) throws PageException {
 IPortalComponentResponse response = (IPortalComponentResponse) this.getResponse();
  TreeNodeSelectEvent nodeselect = (TreeNodeSelectEvent) event;
  String sel_node = nodeselect.getNodeKey();
}