Re: How to add nodes to a tree using Ajax

2008-07-04 Thread geke
t; >> >>> > Hi, >> >>> > >> >>> > how can I add nodes to a wicket tree using a AjaxLink? >> >>> > >> >>> > I tried to add a node to the SimpleTree of this example: >> >>> > http://www.wicket-library.com/wi

Re: How to add nodes to a tree using Ajax

2008-07-04 Thread Kai Schubert-Altmann
e of this example: > >>> > http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1 > >>> > > >>> > with this code: > >>> > > >>> > add(new AjaxLink("addNode") > >>> > { > &

Re: How to add nodes to a tree using Ajax

2008-07-03 Thread geke
>> > http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1 >>> > >>> > with this code: >>> > >>> > add(new AjaxLink("addNode") >>> > { >>> > public void onClick(AjaxRequestTarget t

Re: How to add nodes to a tree using Ajax

2008-07-03 Thread Kai Schubert-Altmann
; List list = new ArrayList(); >> > list.add("new node"); >> > BaseTreePage.this.add(rootNode,list); >> > getTree().updateTree(target); >> > } >> > }); >> > >> &

Re: How to add nodes to a tree using Ajax

2008-07-03 Thread Kai Schubert-Altmann
add(rootNode,list); > > getTree().updateTree(target); > > } > > }); > > > > But the tree will not update itself. > > > > Thanks in advance, > > Kai > > > > > > -- > View this message in context: > http:/

Re: How to add nodes to a tree using Ajax

2008-06-27 Thread geke
ge.this.add(rootNode,list); > getTree().updateTree(target); > } > }); > > But the tree will not update itself. > > Thanks in advance, > Kai > > -- View this message in context: http://www.nabble.com/How-to-add-nodes-to-a-tr

Re: How to add nodes to a tree using Ajax

2008-06-26 Thread Matej Knopp
Your model is either broken or just doesn't sent the correct notifications. You can try calling tree.invalidateAll() to make sure it's rebuilt after you add node. -Matej On Thu, Jun 26, 2008 at 11:44 AM, Kai Schubert-Altmann <[EMAIL PROTECTED]> wrote: > Hi, > > how can I add nodes to a wicket tr

How to add nodes to a tree using Ajax

2008-06-26 Thread Kai Schubert-Altmann
Hi, how can I add nodes to a wicket tree using a AjaxLink? I tried to add a node to the SimpleTree of this example: http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1 with this code: add(new AjaxLink("addNode") { public void onClick(AjaxRequestTarget ta