Hi,
I have a requirement of "editable" Trees. I have set up tree views to show
categories in my application. I want to allow editing of those trees but
unfortunately HTML has some limitations. Can someone point me to a useful
resource in this regard or suggest a nice design for this. I am using
Struts-Layout treeview tag (happily :). You can see the suggested solutions
below.

Thanks a lot.
Regards,
Affan

 ----- Original Message -----
> From: "Aamir Baig" <[EMAIL PROTECTED]>
> To: "Toqeer Sardar" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, February 21, 2003 7:58 AM
> Subject: Re: Editable Trees
>
>
> > There is another pretty neat way that I just thought of...
> > Since the tree that we use currently is open-source we can modify it to
> > support editable trees ..
> >
> > This could be done quite a number of ways...
> >
> > We could create Add, Del small icons that show up with each node in the
> > tree...(to the left or right...watever makes more ergonomical sense),
> >
> > On clicking Add we could prompt up a javascript box, take input and
> > submit....it would execute an action defined in struts for the tree
(just
> > like the sorting in the collection tags...).
> >
> > For delete it could prompt up javascript confirmation and do the same...
> >
> > Once the action is executed, we would have to support action forwarding
> > setup for the tree so that it can then forward to an application action
> > .....(where we can actually put it in the db...)..As a matter of fact we
> > would want to forward to the application action first..in case it fails
we
> > don't want to update the tree......
> >
> > This way we can maintain the same elegant structure that we have right
> now,
> > have any number of levels....I think it'll work well....we could set the
> > tree up to be instantiated in editable or non-editable mode(the
> > default)...and contribute it back to the open-source community that way
> > their existing code would not be hurt ..and they have capability to
setup
> > editable ones....
> >
> > Also, I am not sure if javascript supports right click pop-up
> > menus..otherwise we can add add/edit/del in there....
> >
> > As for the ordering, we could add up and down arrow icons too...although
> > they would only allow incremental movement upwards and downwards....
> >
> > To move by leaps when someone edits a category we can also give the
number
> > order number field that they can type the order number in, and it moves
> the
> > order accordingly....
> >
> > That's one suggestion...what do you guys think....

> > Regards,
> > Aamir
> >
> > ----- Original Message -----
> > From: "Toqeer Sardar" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Friday, February 21, 2003 12:29 AM
> > Subject: category management
> >
> >
> > >
> > >
> > > Hi
> > > The best way to handle hierarchical structures is an editable tree
where
> > we
> > > can edit, add, delete and move the nodes up and down. But the problem
is
> > HTML
> > > and java script limitations. I did some search but couldn't find such
> > > component in HTML/JavaScript... If any one knows or have any idea
please
> > help
> > > me.
> > > I have following one solution, which is not the best:
> > > Create three lists, for three levels of categories each with
> > add/edit/delete
> > > and UP/DOWN buttons. Selecting a row in list-1 will populate child
> records
> > in
> > > list-2 and so on.
> > >
> > > One major disadvantage with this approach is that we can't handle
> > dynamically
> > > the category levels more than 3 (number of lists we have in UI), it
also
> > > increases the size of the screen in horizontal direction.
> > >
> > > Any better idea...?
> > >
> > > Regards
> > > Toqeer.
> > >
> > >
> >
> >
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to