Hi,
a NestedTree does not have any notion of 'selection'.
But the set of expanded nodes is kept in the tree's model object, see
AbstractTree#expand() and #collapse().
You decide how to represent each node's content, for this you'll have to
override AbstractTree#newContentComponent(). The default will just
expand and collapse the tree branches on each click, see
org.apache.wicket.extensions.markup.html.repeater.tree.content.Folder
You can override Folder's methods or use any other component to
represent your nodes.
Have fun
Sven
On 25.09.2015 13:41, Anup Gokhale wrote:
Hi.
Am a complete noob to Wicket and am currently learning Wicket by writing
small example applications. Have worked my way through all the basic
components like TextField, Links, Labels, Buttons, ListView, DataTable etc.
Have now reached DefaultNestedTree and it's many avatars. Am totally stuck
in fetching the currently selected nodes. How do our models know which
node(s) the user has currently selected in the tree? Also are there any
events that get fired when the user clicks on a tree node?
This is my very first post to the wicket user group, and I must say that
Wicket developers and committers have done a commendable job. Thanks for
developing such a wonderful framework.
Warm regards,
Anup Gokhale
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]