This code from the example is just building the tree model - no place for Wicket components yet.

Creating an AjaxLink comes later, when the tree nodes are represented by Wicket components - see AbstractTree#newLinkComponent().

Sven

fachhoch wrote:
here the code from wicket examples

    private void add(DefaultMutableTreeNode parent, List sub)
    {
        for (Iterator i = sub.iterator(); i.hasNext();)
        {
            Object o = i.next();
            if (o instanceof List)
            {
                DefaultMutableTreeNode child = new
DefaultMutableTreeNode(new ModelBean(
                    "subtree..."));
                parent.add(child);
                add(child, (List)o);
            }
            else
            {
                DefaultMutableTreeNode child = new
DefaultMutableTreeNode(new ModelBean(
                    o.toString()));
                parent.add(child);
            }
        }
    }

in else block I want to add  a ajaxLink , and any link needs an id so in
this case what id can I give ?



svenmeier wrote:
Sure, see LinkTree and #setLinkType().

Sven
*
*fachhoch wrote:
I mean links to show popups, like modal window , or file download etc ?
fachhoch wrote:
is it possible to put Ajaxlinks   in tree nodes ?


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






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

Reply via email to