This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes Is There a Vertical Scrollbar for the selectManyListbox? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Is There a Vertical Scrollbar for the selectManyListbox?" Watch "Is There a Vertical Scrollbar for the selectManyListbox?" New topic
Author

Is There a Vertical Scrollbar for the selectManyListbox?

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
According to the book I read, there is a scrollbar for the <h:selectManyListbox>.

I created a list box but did not see a scrollbar. Therefore, I surrounded the list box with:

to display a scrollbar. But the vertical scrollbar is too far away from the border of the list box.

I wonder whether I am doing it right. Is there a way to show a scrollbar by using the <h:selectManyListbox>? Or, is there a way to make the scrollbar generated by the code above be right next to the border of the list box?
Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
Let me answer my own question.

We can use the "size" attribute in the panelGroup tag. For example, we can specify:

size = "5"

If our list box has more than 5 elements, the vertical scrollbar will show up automatically.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Is There a Vertical Scrollbar for the selectManyListbox?
 
Similar Threads
How to avoid Vertical scollbar in <Select>
How to invoke an action in jsf using ajax
Selectmanylistbox disables submit button
Problem with <h:selectManyListbox within <p:dataGrid
Horizontal Scroll Bar in List Box