Well, just take your code from here:

http://apache-wicket.1842946.n4.nabble.com/Tree-with-different-BookmarkablePageLink-per-Node-tp4660096p4660103.html

... and use an AjaxLink to represent the content of a node:

public Component newContentComponent(String id, final AbstractTree<Foo> tree, IModel<Foo> model)
{
  return new Folder<Foo>(id, tree, model)
  {
    @Override
protected MarkupContainer newLinkComponent(String id, IModel<Foo> model)
    {
      Foo foo = model.getObject();
      return new AjaxLink(id) {
        public void onClick(AjaxRequestTarget art) {
          // show a div or open a modal dialog or ...
        }
      };
    }
  };
}

Sven


On 09/05/2013 02:02 PM, Piratenvisier wrote:
How can I make a tree node popup on click ?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to