You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alexander Anguiano <Al...@netiq.com> on 2008/09/30 15:10:15 UTC

Migrating to 1.3 and ajax tree's

Hi,

 

I'm migrating to 1.3 and the notes recommend the new tree implementation
in the 1.3 and not the one in extension.  I have a couple of question
about this

 

1)     Which Tree class do I use?  BaseTree?

2)     The renderNode method is missing.  What is the equivalent in the
new Tree classes

 

Thanks.

 

 

 

 


Re: Migrating to 1.3 and ajax tree's

Posted by Matej Knopp <ma...@gmail.com>.
Hi,

On Tue, Sep 30, 2008 at 3:10 PM, Alexander Anguiano
<Al...@netiq.com> wrote:
> Hi,
>
>
>
> I'm migrating to 1.3 and the notes recommend the new tree implementation
> in the 1.3 and not the one in extension.  I have a couple of question
> about this
>
>
>
> 1)     Which Tree class do I use?  BaseTree?
Depends on what components you need in the tree. BaseTree gives you
most flexibility. LinkTree and LabelTree are easier to use because
they came with existing node components.

> 2)     The renderNode method is missing.  What is the equivalent in the
> new Tree classes

You can use the protected Component newNodeComponent(String id,
IModel<Object> model) method to create your own tree node components.
Look at LinkTree or BaseTree implementations for this method.

-Matej

>
>
>
> Thanks.
>
>
>
>
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org