This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes GWT and the fly likes How to create Editable Tree structure with database data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "How to create Editable Tree structure with database data" Watch "How to create Editable Tree structure with database data" New topic
Author

How to create Editable Tree structure with database data

Nomula vasudevu
Ranch Hand

Joined: Oct 25, 2006
Posts: 107
The Requirement is I should show a tree strucutre, fetching the data from database. The tree structure must be editable. The end user is allowed to rename/add/delete the leaves/node of the tree, the changes should be reflected in the data base. This task should be done using GWT. I am very new to GWT, please guide me how this task can be accomplished. Thanks in advance.
subhransu das
Greenhorn

Joined: Aug 11, 2010
Posts: 4
Hey you should use Ext GWT. They are having some inbuilt component, by using those you can achieve this.
Nomula vasudevu
Ranch Hand

Joined: Oct 25, 2006
Posts: 107
Thank you Das! Can you give any url/tutorial link for this. Is it freeware or commercial and one more thing is the data is very large which should be shown as tree structure.
subhransu das
Greenhorn

Joined: Aug 11, 2010
Posts: 4
Hey there are various options like you can use GWT or EXT GWT.
Check out this link:
http://www.sencha.com/examples/explorer.html#roweditortreegrid
i hope you will find something on this. Only thing you have to write on the database thing on the save button listener of editor tree grid..
Nomula vasudevu
Ranch Hand

Joined: Oct 25, 2006
Posts: 107
Thank you Das! for the quick reply. The requirement needs that the user is allowed to add a tree node/leaf from the browser dynamically in addition to editing the existing nodes or leafs, I think the RowEditorTreeGrid don't has this feature. It only allows to edit the existing node/leafs.
subhransu das
Greenhorn

Joined: Aug 11, 2010
Posts: 4
The rowEditorTree grid is not having that functionality but you can add some code under it to function like create and delete node.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10268
    
    8

Subhransu,
In future, while posting code, please UseCodeTags


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
subhransu das
Greenhorn

Joined: Aug 11, 2010
Posts: 4
Maneesh Godbole wrote:Subhransu,
In future, while posting code, please UseCodeTags

sure....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create Editable Tree structure with database data