Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

h:dataTable header is scorlling with the data  RSS feed

Raghunath Kb
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!