Hi, I am new to jsf. I've two selectManyListboxes and I need to move the values from one selectManyListbox to another. From the bean I am passing the values to the selectManyListbox are of SelectItem type values. Could anybody explain me that how to do this any help is appreciated.
Say you have 2 selectManyListBox, one is source and another is destination.
Create a property in your backing which is of type Map and bind it to your source selectManyListBox and do the same for destination selectManyListbox. During the initial load the destination one will be empty.
Use Ajax to show the selected item from the source to destination.
Since you are binding the selected value(s) to a property in your backing bean you can easily access the value in another selectManyListBox.
Hi Kumar Saravanan, Thanks for your reply. My problem is I've the SelectItems values then how to add or remove the values I didn't find any such method for SelectItem.I found only length for that. Please could explain me with a small example. Here I am sending the code