Hi,

with newNodeComponent in the BaseTree class i can specify a different
component for my treenode, but this is the same for all node. Is it possible
setting different treenode component for added a different type of node in
my tree?

something like this:

            protected Component newNodeComponent(String id, IModel model) {
                if( node type a)
                           return new component_a(id, model, tree);
               else if
                           return new component_b(id, model, tree);
               else
                           return new component_c(id, model, tree);
            }

is it possible?

thk

Reply via email to