Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!