Please can does any one have sample on how to make use to the Wicket Tree
 
 
add(new Tree("tree", new DefaultTreeModel(rootTreeNode)){
            public Image getJunctionImage(DefaultMutableTreeNode node){
                return new Image(Tree.JUNCTION_IMAGE_NAME , "Knob.gif");
            }
            public Image getNodeImage(DefaultMutableTreeNode node){
                return new Image(Tree.NODE_IMAGE_NAME, "Knob.gif");
            }
        }
        );

 
in HTML
<span wicket:id="tree"></span>
 
but i get Unable to find package resource [path = wicket/markup/html/tree/com/health/Knob.gif
 
Alright where should i position my image and what should i return in those two methods...thanks
 
--
 

Reply via email to