• 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

dropdown

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have two dropdowns on my page and they are dependent. Main dropdown shows list of Groups. The dependent shows SubGroups for selected
groupcode.

I have a method getGroupInfo and it returns a map. inside my getGroupInfo I populate the map like this ...

map.put(groupcode,results) ---results is a list of subGroup objects

I am getting all the GroupInfo values when the page is called using session object. How can I change the values in subGroup dropdown based on the groupcode chosen? I am not sure how to manipulate the "results" on groups dropdown change event?

here is my hardcoded code

[ March 12, 2007: Message edited by: shah rah ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is referred to as "dependent dropdowns" or "dependent selects". It has been discussed recently in this forum in this thread. In addition, you will find a lot of information by "Googling" this topic.
 
reply
    Bookmark Topic Watch Topic
  • New Topic