• 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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:

 
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic