I used wicket1.0.2.
 
In my Application, i want to show a tree as navigator and detail message as body.It is a parellel layout, left panel is a treeview, right is content view.  What i want is show node name in right panel when i click a tree node.
 
Followed the example(1.0.2) , i used two Border-left and right. In method  nodeLinkClicked i used following code:
  
 protected void nodeLinkClicked(DefaultMutableTreeNode node)
 {
  super.nodeLinkClicked(node);
  Page p = this.getPage();
  p.replace(new Label("detailMsg","tree node link was clicked, user object: " + node.getUserObject()));//NullPointerException
  log.info("tree node link was clicked, user object: " + node.getUserObject());
 }
 
But i cannot replace the content in right border.
 
Thanks for your advice.

  

Attachment: navtree.rar
Description: Binary data

Reply via email to