Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes Scrolling problem with JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Scrolling problem with JSF" Watch "Scrolling problem with JSF" New topic
Author

Scrolling problem with JSF

Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
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.


- Varun
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: May 30, 2002
Posts: 1400
Seems I have to use that way only.
Wherever I search , I found this solution only (double table one).
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
This is an older post, the last two links might help you out a bit
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
ugh:

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

Eric
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Thanks ... Good link.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Scrolling problem with JSF