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 > > > -- View this message in context: http://old.nabble.com/wicket-example-Simple-tree-tp27730550p27731004.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org