You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ping ping <sp...@hotmail.com> on 2009/10/19 12:40:08 UTC
Wicket Abstract Tree Question
I have a few questions regarding the wicket abstract/linked tree
1) I need to dynamically update wicket linked/abstract tree data, is that in order to do that, the only way is to remove the abstract tree on the form based on its ID, then adding it back to the form again, is there other alternatives to resolve that?
2)And is that the linked tree treemodel cannot be null? What if inititally the tree data is null, until people dynamically add in new data?
_________________________________________________________________
NEW! Get Windows Live FREE.
http://www.get.live.com/wl/all
RE: Wicket Abstract Tree Question
Posted by ping ping <sp...@hotmail.com>.
Hi there, thanks for the reply.
As for question One, I was wondering that how to update parent node component with Ajax. Dont seem to find any related resources to that
> Date: Mon, 19 Oct 2009 08:59:01 -0200
> Subject: Re: Wicket Abstract Tree Question
> From: pedrosans@gmail.com
> To: users@wicket.apache.org
>
> 1) I need to dynamically update wicket linked/abstract tree data, is that in
> order to do that, the only way is to remove the abstract tree on the form
> based on its ID, then adding it back to the form again, is there other
> alternatives to resolve that?
>
> I have it working just adding new nodes to treemodel, then updating the
> parent node component with ajax.
>
> 2)And is that the linked tree treemodel cannot be null? What if inititally
> the tree data is null, until people dynamically add in new data?
>
> can to be null, it even has an constructor that don't get any model
> http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/tree/AbstractTree.html#AbstractTree%28java.lang.String%29
>
> On Mon, Oct 19, 2009 at 8:40 AM, ping ping <sp...@hotmail.com> wrote:
>
> >
> > I have a few questions regarding the wicket abstract/linked tree
> >
> >
> >
> > 1) I need to dynamically update wicket linked/abstract tree data, is that
> > in order to do that, the only way is to remove the abstract tree on the form
> > based on its ID, then adding it back to the form again, is there other
> > alternatives to resolve that?
> >
> >
> >
> > 2)And is that the linked tree treemodel cannot be null? What if inititally
> > the tree data is null, until people dynamically add in new data?
> >
> > _________________________________________________________________
> > NEW! Get Windows Live FREE.
> > http://www.get.live.com/wl/all
>
>
>
>
> --
> Pedro Henrique Oliveira dos Santos
_________________________________________________________________
Join the Fantasy Football club and win cash prizes here!
http://fantasyfootball.malaysia.msn.com
Re: Wicket Abstract Tree Question
Posted by Pedro Santos <pe...@gmail.com>.
1) I need to dynamically update wicket linked/abstract tree data, is that in
order to do that, the only way is to remove the abstract tree on the form
based on its ID, then adding it back to the form again, is there other
alternatives to resolve that?
I have it working just adding new nodes to treemodel, then updating the
parent node component with ajax.
2)And is that the linked tree treemodel cannot be null? What if inititally
the tree data is null, until people dynamically add in new data?
can to be null, it even has an constructor that don't get any model
http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/tree/AbstractTree.html#AbstractTree%28java.lang.String%29
On Mon, Oct 19, 2009 at 8:40 AM, ping ping <sp...@hotmail.com> wrote:
>
> I have a few questions regarding the wicket abstract/linked tree
>
>
>
> 1) I need to dynamically update wicket linked/abstract tree data, is that
> in order to do that, the only way is to remove the abstract tree on the form
> based on its ID, then adding it back to the form again, is there other
> alternatives to resolve that?
>
>
>
> 2)And is that the linked tree treemodel cannot be null? What if inititally
> the tree data is null, until people dynamically add in new data?
>
> _________________________________________________________________
> NEW! Get Windows Live FREE.
> http://www.get.live.com/wl/all
--
Pedro Henrique Oliveira dos Santos