Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is There a Vertical Scrollbar for the selectManyListbox?  RSS feed

 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!