Hi, Thanks for the suggestion, Just one more question, how will paging be affected in this case by repeatedly collapsing and expanding the rows.
--- Ed Webb <[EMAIL PROTECTED]> wrote: > > > Din Sush wrote: > > Hi, > > I have following requirement and would like to > know if > > this can be done usinf displaytag library > > > > 1. The form will have collapsible columns just > like > > windows explorer. > > 2. When one clicks on the + sign the children > under it > > will explode, it can go to n levels > > 3. Each level will share the same column headings > as > > the parent one. > > > > > As far as I know DisplayTag isn't able to do this > for you. However you > can certainly use DisplayTag in the solution to your > problem. > > What I'd suggest is start with a list of your top > level objects: > > Item1 > Item2 > Item3 > > and pass that to DisplayTag. If you use a decorator > in the first column > you can add the + and hyperlink to prompt your > application to load the > next level of detail: > > Item1 > Item11 <------ Insert the children of Item1 into the > List between Item1 > and Item2 > Item12 <--' > Item2 > Item3 > > DisplayTag will be able to display them in the same > table as the top > level objects. Again you will need your decorator on > the first column to > indent the lower level items and to handle the + and > - controls. All you > will need to keep track of is: > > 1. Does this Object have any child objects? If yes > you'll need a + or - > control. > 2. Are this Object's children currently being > displayed? to determine > whether to show a + or a - > 3. What level is this object at in the hierarchy? to > determine the > indentation of the 1st column's text. > > How easy this is to achieve depends on how your > objects are constructed. > > Ed! > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > displaytag-user mailing list > displaytag-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/displaytag-user > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user