• Post Reply Bookmark Topic Watch Topic
  • New Topic

Checkboxes and Scroll Bars

 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a list of records to render to a web page. I provide a checkbox to each record in the list for users to make selections.

My list of records can be very long. And each record can contain many columns. Therefore, the list will be displayed in a kind of pane with a vertical scroll bar on the right and a horizontal scroll bar at the bottom.

How do I put my list in such a pane?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like a multiple select list would work better. Neither MyFaces or ADF have a component like this. You'd have to make a custom component where a list of checkboxes sat in some sort of scrollable DIV.
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me answer my own question.

The answer is the "overflow" attribute in the DIV tag.



The style=" ... " can also be placed in the <h:dataTable ...> tag.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!