If you open the stucture in beginners view you have an other sequence of
nodes than in advanced nested view
Follow the path A AB ABB ABBA ABBB ABBBA ABC ABD AC in advanced nested
view and try to follow it in beginners view.
Am 03.07.2013 22:53, schrieb Sven Meier:
Hi,
can you please explain how the branch is faulty or 'wrong'?
You can override NestedTree#newContentComponent(String, IModel) to
decide the representation of a node's content:
MyNestedTree extends NestedTree {
@Override
public Component newContentComponent(String id, final
AbstractTree<Foo> tree, IModel<Foo> model)
{
return new Folder<Foo>(id, tree, model)
{
private static final long serialVersionUID = 1L;
@Override
protected MarkupContainer newLinkComponent(String id,
IModel<Foo> model)
{
Foo foo = model.getObject();
if (tree.getProvider().hasChildren(foo))
{
return super.newLinkComponent(id, model);
}
else
{
PageParameters parameters = new PageParameters();
parameters.add("foo", foo.getId());
return new BookmarkablePageLink<Void>(id,
tree.getPage().getClass(), parameters);
}
}
};
}
}
Hope this helps
Sven
On 07/03/2013 10:24 PM, Piratenvisier wrote:
When you look at the tree structure in advanced nested view
there is a wrong branch A AB ABB ABBA ABBB ABBBA ABC ABD AC
I would like to use a tree structure where the nodes are links to
wicket pages
or where you can open a nodes panel in accordion style
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org