i m using wicket1.2.6

i done with the nice tree and can display it. Just i did not get any
resource on the link. Once i click all the node link, i wish to redirect to
different pages that i defined. I had search in the wicket-user forum, but
cant get any result yet. Can u help for it. (btw: i m the new to wicket)

here is my partial code

 final Tree tree = new Tree("tree", treeModel)
        {
                                
                
                 
         protected String renderNode(TreeNode node)
            {
                DefaultMutableTreeNode treeNode =
(DefaultMutableTreeNode)node;
                return String.valueOf(treeNode.getUserObject());
            }
                 
                 
        protected void nodeLinkClicked(DefaultMutableTreeNode node)
         {
                        DefaultMutableTreeNode treeNode = 
(DefaultMutableTreeNode)node;
                        setResponsePage(ReportTreePanel.class);
                        
               }
                
        };




Eelco Hillenius wrote:
> 
>> Can anyone give me an example of override onNodeLinkClicked(...) for
>> display
>> the tree. I want to click the menu intree structure. It's fine i can did
>> it
>> now. But i cant setResponce to another page when i clicked on the link..
>> thanks in future
> 
> So calling setResponsePage (to another page I pressume) doesn't work
> in the link clicked handler of the tree component? I wouldn't know how
> this might be a problem tbh.
> 
> Which version of Wicket are you using, and which tree component (from
> the core project or the extensions project)?
> 
> Eelco
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11390711
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to