h:selectManyListbox is a JSF component (not a RichFaces one) but in any case what you want is not possible with that component, you cannot put checkboxes in a <select>. Can't you use h:selectManyCheckbox instead?
Thank you for your reply Michal
ofcourse I am using h:selectManyCheckbox at present. But there are some differents in the look and feel between the h:selectManyListbox and h:selectManyCheckbox. So my client wants the list of checkboxes to be placed inside the select menu with the same behaviour of h:selectManyListbox.
This is what i am using now. But there is no functionality like "selecting all the check boxes by pressing SHIFT key" where as the h:selectManyListbox has this functionality by default and the selected items will not be highlighted like the "state" highlighted.
This is the work around that i am doing now....
If we have h:selectManyCheckbox inside h:selectManyListbox will be much better . Thank you for your reply
Though if it's just the look you're after you can put the checkbox in as a background image for <option>, since it is absolutely redundant. Otherwise what you want is simply not possible, you cannot combine the components like that.
Thank you for your reply. What you are suggesting is right. So today I did the work around for this problem now. And i did the work around for selecting multiple items by pressing SHIFT+Click .
It would be much better if we are able to combine the two components.