File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes h:dataTable header is scorlling with the data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "h:dataTable header is scorlling with the data" Watch "h:dataTable header is scorlling with the data" New topic

h:dataTable header is scorlling with the data

Raghunath Kb

Joined: Oct 08, 2012
Posts: 1
Datatable header is scrolling with the data.

Previously my project was running in WAS6.1 and we were using JSF1.1(JSP files). Below is the code structure. The header was not scorlling at that time.

We have migrated from JSF1.1 to JSF1.2 (JSP file to Xhtml files) for WAS6.1 to WAS8.0 Migration. But here the header also scrolling with the data. Please give your suggestion on this.

<t:htmlTag value="div" id="divElem">
<f:facet name="header">
Column name1
column data1
<f:facet name="header">
Column name2
column data2
in page:
var tablesize = document.getElementById('datatable_id:resultsize')
if (tablesize > 0 && document.body.scrollHeight > window.screen.availHeight){
var calcHeight=Math.ceil(screen.height*41 / 100);

external js
function applyScroll(userheight,page){
var divElem = document.getElementById(page+':divElem'); = "auto";"100%"; = userheight;
I agree. Here's the link:
subject: h:dataTable header is scorlling with the data
Similar Threads
Unable to display current row in a datatable
h:datatable, how multiply row cell A with row cell B and set value in row cell C
How to pass JSF inputText & outputText value into javascript code ?
nested h:datatable question
Unable to display header in outer JSF datatable of a nested datatable using facet tag