• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create the clickable list

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I have a list of beans. The beans has getters and setters of some properties. I have prepared a list of such beans. My requirement is to create a clickable list, such that on clicking the icon, the complete list of beans with all the values will be displayed.

Can i do it in CSS, or div, DHTML. If anyone knows how to do it, please let me know.

thanks
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure what you are asking fir exactly. I am guessing

onclick="document.getElementById("someId").display='block'"

Eric
 
Anshul Chandra Saxena
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What i am looking for is, suppose i have the JavaBean like this.

I prepared an ArrayList of such beans, suppose 10 of them. Now i want to group these, and display them as

+ (then the first bean i.e the properties value of it. eg Source Page Name and Target Page Name.) These have already been populated by the Javacode.

Now when someone clicks the + button, all the lists will expand and all the beans with their property values will be displayed.

Can anyone suggest how to make this expandable/collapsible list ?

thanks
Filename: Example.bmp
File size: 325 Kbytes
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's pretty simple if you can capture the clicks and use CSS to hide and show elements.

Where's your code? What part are you having problems with?
 
Anshul Chandra Saxena
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bear

Thanks for replying. Actually i am a novice and i am not really getting how to capture the clicks. Can you please help me in this ?

thanks
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Find a tutorial on event handling. A forum is not the best place to learn a new technology from scratch.
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic