File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 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.
 
Consider Paul's rocket mass heater.
 
subject: Scrolling problem with JSF
 
Similar Threads
Centering a checkbox in a h:dataTable column
Please HELP me. How To Hard Code Values in Each Row of a dataTable?
h:form and mouseover
JSF- Duplicate Component Id Exception
HtmlDataTable and "duplicate ID"