Btw, I played around with using <ul> (nested) tree also. But in the end, I just found them too inflexible; you can't make the seperation between a link the folds/unfolds and a link that 'just' selects a node with <ul> based tree.

However, if you want to build such a javascript tree, that's not too much work with Wicket. Just let wicket write out the ul/ li elements, and use a javascript lib such as 'sstree' for the folding/unfolding magic. We have got a sandbox project in CVS, called 'wicket-sandbox', that has such a tree. Take a look at MenuBorder in src/eelco/java/navmenu for inspiration.

Eelco

Eelco Hillenius wrote:

You can do it all with Wicket (though I had to make a tiny change to make it easier ;))

In RC2 (about to be released), you can provide your own panel for a node. And you can nest anything you want in a panel (even forms etc), so the possibilities are limitless. No example yet, I hope to find some time for that before 1.0 final (just like it could use some more documenting). But in the meanwhile you can take a look at tree's NodePanel and method newNodePanel (which you should override in case you want to provide your own panel).

Have fun,

Eelco

Stephen Knight wrote:

Tapestry has a TreeTable component...you can see it here in the workbench:
http://demo.raibledesigns.com/workbench/app?service=page/FileSystemTableTree


And here is a purely javascript treetable:
http://sstree.tigris.org/nonav/example4.html#
From those examples, you can see that each node of the tree is in a different row of the table. And the table row can have other columns to display information about the tree node (the Tapestry example shows the Date of the file).
Steve


Eelco Hillenius wrote:


I"m not sure I understand what you"re looking for. Do you mean HTML table? In that case you can just put the tree in the <td> (like <td> <span wicket:id="someTree" /> </td>).
Could you tell us in more detail what you want?
Eelco





------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user





------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to