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
e of this example:
> >>> > http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1
> >>> >
> >>> > with this code:
> >>> >
> >>> > add(new AjaxLink("addNode")
> >>> > {
> &
>> > http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1
>>> >
>>> > with this code:
>>> >
>>> > add(new AjaxLink("addNode")
>>> > {
>>> > public void onClick(AjaxRequestTarget t
; List list = new ArrayList();
>> > list.add("new node");
>> > BaseTreePage.this.add(rootNode,list);
>> > getTree().updateTree(target);
>> > }
>> > });
>> >
>> &
add(rootNode,list);
> > getTree().updateTree(target);
> > }
> > });
> >
> > But the tree will not update itself.
> >
> > Thanks in advance,
> > Kai
> >
> >
>
> --
> View this message in context:
> http:/
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
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
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