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

selectManyListBox not binding to an arraylist

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

I have a :selectManyListBox that is defined like this:




So as soon as a user clicks a reason, the criteriaSearchBean gets populated with the items selected, and the form is submitted.

The only problem is that this does not happen. The flowAdjustmentAction.criteriaSearchBean.reasonList does not get populated and is null. My syntax seems ok, because I am binding text boxes to other values in the criteriaSearchBean as well, and they dont get set to null.

The selectItems consist of an Object that is composed of an Integer , and a String. The array "reasonList" is an Integer array. There are no validation errors reported.
Anyone know what is up?

Thanks,
Ayan
 
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you have to bind a selectmanyListBox to a Map and not a List. a name/Value pairing ..Try that
 
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic