This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 ]