Wicket Selectable Tree

2012-11-09 Thread void
Hi,

 I implemented a tree component similar to the SelectableFolderContent example 
(http://www.wicket-library.com/wicket-examples-6.0.x/tree/wicket/bookmarkable/org.apache.wicket.examples.tree.NestedTreePage).
 It works fine as long as the nodes do have unique names. If thehe is more then 
one node with the same name, they all get selected by clicking on one of them. 
Can anyone offer a solution for that?

 Thanks
 Oliver


Wicket Selectable Tree

2012-11-09 Thread void
It's a custom Node class, pretty similar to Foo in the example. I resolved this 
by adding a second attribute name to Node. name is returned by 
Node.toString() for display. The id attribute is set to 
hierarchy1.hierarchy2.name. So the id is unique: Selection works as expected.

 Regards
 Oliver

 --- Sven Meier (sv...@meiers.net) schrieb:

 What is the generic parameter of your ITreeProvider ?
 Sven

--- vo...@gmx.it schrieb:

 Hi,
 I implemented a tree component similar to the SelectableFolderContent example
 
(http://www.wicket-library.com/wicket-examples-6.0.x/tree/wicket/bookmarkable/org.apache.wicket.examples.tree.NestedTreePage
 ).
 It works fine as long as the nodes do have unique names. If thehe is more then
 one node with the same name, they all get selected by clicking on one of them.
 Can anyone offer a solution for that?
 Thanks
 Oliver


Selectable Tree WicketTester

2012-11-12 Thread void
I took the following classes from the tree example to implement a selectable 
tree:
 - Foo
 - FooExpansion
 - FooProvider
 - SelectableFolderContent

 Now I'd like to test the tree with WicketTester:
 - click on the plus sign of a node; does the sub tree open? Are the children 
visible?
 - click on the minus sing of an node; does the sub tree close?
 - click on expandAll / collapseAll; does the tree collapse or extned?
 - click on a node; does the node shown as selected?

 I'm not sure how to do that. Could somebody offer an aproach?

 Thanks
 Oliver