aspose file tools*
The moose likes JSF and the fly likes selectManyListBox not binding to an arraylist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "selectManyListBox not binding to an arraylist" Watch "selectManyListBox not binding to an arraylist" New topic
Author

selectManyListBox not binding to an arraylist

Ayan Afridi
Greenhorn

Joined: Jan 18, 2005
Posts: 24
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
Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I think you have to bind a selectmanyListBox to a Map and not a List. a name/Value pairing ..Try that
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: selectManyListBox not binding to an arraylist