I want to how to create a listbox with a vertical scrollbar in it..
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I see that you’re using JSF. You don’t necessarily need plain vanilla HTML here. In real JSF you can render a
<select multiple="multiple">element with the<h:selectManyListbox>component. Here’s a basic example:which is backed like as follows:
You can control the layout using CSS through the
size,styleClassand/orstyleattributes of the component, exactly the way as you would do in plain vanilla HTML.