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?
Joined: Aug 29, 2003
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.