Forums Register Login

treeview in JSP

+Pie Number of slices to send: Send
I'm really new at java and currently working on a project that needs a Tree view. I have found ways to generate the Tree view but they are all hard coded. Is there a way in which the Tree view is Dynamic wherein the values of each nodes are gathered from the database and is then displayed in a jsp? Another thing I need also the Parent node to be able to be selected by the user. I have'nt found any sample code that enables the Parent node to be selected.i m working in LINUX. I'm really in deep need for assitance. Any help will be highly appreciated.
+Pie Number of slices to send: Send
The below link has a DHTML- Javascript based Tree menu (I have used it before).

http://www.treemenu.net/
+Pie Number of slices to send: Send
I do not know if there are any 3rd party tools that meet your needs as stated, but whether you locate one or decide to build it yourself, such a control would need both server-side and client-side mechansisms.

You will need server-side mecahanisms to fetch the info from the database and initially render to the page, and client-side mechanisms to handle the interaction with the control once the page has been loaded. If this interaction requires occasional information from the database, Ajax would be a means to accomplish that without forcing a page refresh.
+Pie Number of slices to send: Send
I need a new interior decorator. This tiny ad just painted every room in my house purple.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1609 times.
Similar Threads
Searching a JTree
JTree, adding and removing nodes contained in a master tree
Class Hierarchy
Syntax Tree
How to persist parent and child tree node data through JSF and hibernate
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:48:54.