File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes checkbox in dropdown list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "checkbox in dropdown list" Watch "checkbox in dropdown list" New topic

checkbox in dropdown list

Bhavin Sanghani
Ranch Hand

Joined: Dec 17, 2003
Posts: 67

Anybody knows how to add checkbox in dropdown list using JSF?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41180
Do you mean you want each element in the option list also to have a checkbox? HTML forms have no element for that, so you'd have to roll your own.

Ping & DNS - my free Android networking tools app
Bhavin Sanghani
Ranch Hand

Joined: Dec 17, 2003
Posts: 67
Yes..That's what I want. Any hint on that how to build it?
Arshad Sharief

Joined: Feb 23, 2006
Posts: 14

checkbox in a dropdown??

instead use af:selectManyListbox

It is sorta covered in the JavaRanch Style Guide.
subject: checkbox in dropdown list
Similar Threads
Expandable h:selectOneMenu
Can I access java class using Ajax
Need to include check boxes inside combo box
checkbox in dropdown
doubt regarding dropdown list