File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to Introduce a Button That Controls All Other Links in a Web Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to Introduce a Button That Controls All Other Links in a Web Page " Watch "How to Introduce a Button That Controls All Other Links in a Web Page " New topic
Author

How to Introduce a Button That Controls All Other Links in a Web Page

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
My web page has many nodes. Each of them represents a treeview "expand (i.e., + )" or "collapsed (i.e., -). Therefore, a Collection can be either collapsed or in collapsing state if that Collection is not empty. If users want to collpase a Collection, the application makes a trip to the database to retrieve the elements in that Collection. Each of the node is coded as
shown below (I show only one of the Collection(s) I have and I do not want to repeat all of them).

Now, I am trying to introduce a button that triggers (send a signal to) all those nodes to either expand or not expand. What is the cleverest/cleaninst way to do it?

For each treeview node in my code, when the <logic:equal ....> tag tests the property; for example, 'expandNotifiedAgency' is set to 'true', an action is invoked to retrieve and display the elements in that Collection.


Thanks for your guidance.
[ March 13, 2006: Message edited by: Daniel Gee ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Introduce a Button That Controls All Other Links in a Web Page