are you using LinkTree?

-igor

On Fri, Aug 14, 2009 at 12:15 AM, Haulyn R. Jason<saharab...@gmail.com> wrote:
> Hi,all:
>
> I design a page with a tree for page navigation. But I can not find more
> information from Internet to learn how to use the Tree component.
>
> I can display the tree as
>
> menu1
>    |-sub_menu1
>    |-sub_menu2
> menu2
>    |-sub_menu3
>    |-sub_menu4
>
> and I remove root node, make all tree expand while init the tree, but I do
> not know how to add links to the sub_menus, I tried to add some code like
> this:
>           �...@override
>            protected void onNodeLinkClicked(AjaxRequestTarget target,
> TreeNode node) {
>                DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)
> node;
>                NavigationTreeNode navigationTreeNode = (NavigationTreeNode)
> treeNode.getUserObject();
>                if (navigationTreeNode.isURL) {
>                    setResponsePage(navigationTreeNode.getURL());
>                    super.onNodeLinkClicked(target, node);
>                } else {
>                    super.onNodeLinkClicked(target, node);
>                }
>            }
>
> this looks work well, but when I clink on a link, the page redirect to the
> target page, but I can not keep the tree with the selected node expand.
>
> Can anyone help me or give me some reference URLs? Thanks!
>
> --
> ------------------
> Enjoy. Thanks!
>
> Mobile: +086-15864011231
> email: saharab...@gmail.com, hmp.hau...@foxmail.com
> website: http://haulynjason.net
> gtalk: saharab...@gmail.com
> yahoo: jia_hao...@yahoo.com
> msn: saharab...@gmail.com
> skype: saharabear
> QQ: 378606292
>
> Haulyn Jason
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to