• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Populating subsequent select boxes with DWR

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm want to use DWR (on a struts 2 page) to populate multiple select lists subsequently (about 5 times), but I can't figure out how to do it. The initial list is populated from the with values from the application context when the page loads - this isn't a problem. I select a value from this list, and my second list gets populated (works well). I select a value from the second list, and this is where I have the problem - there aren't any values in the parameter being passed in. I can get an alert to give me something "meaningful" from param, param.id, param.name, but not param.value (this is undefined). Upon further investigation (viewing the source of the webpage) I notice the select list isn't being populated, but I can see fresh values in the dropdown on the UI every time. I'm not really sure what I'm doing wrong, or even if I AM doing something wrong. In the end I need to have all the ids selected from each select box so I can save the data. My code is below if anyone can point me in the right direction. Thanks in advance.

This is included in another JSP page:



This is the main JSP:

 
Why fit in when you were born to stand out? - 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