File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scrolling problem with JSF

 
Varun Khanna
Ranch Hand
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I think it's actually a HTML related query, hence posting here :

I have a dataTable code in JSF like this :

The facet is creating the Header and outputtext is creating the rows. The above code is rendered as follows :


Now I want to add a div tag or something .. to enable scrolling without moving the header of the table.

Can anyone suggest how to do that? I can't add div tag enclosing the table as it would make the header also scrollable. I wolud like to know is it possible to add div or something just in the body tag to allow scrolling of the body only.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what people normally do is set the header in one table and the body in another table making the bottom portion scrollable.

Eric
 
Varun Khanna
Ranch Hand
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems I have to use that way only.
Wherever I search , I found this solution only (double table one).
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is an older post, the last two links might help you out a bit
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ugh:

URL: http://www.coderanch.com/forums/

Eric
 
Varun Khanna
Ranch Hand
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ... Good link.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic