You don't need these ids for a fixed header.
You can just define classes for your table elements.
I fixed the table header for IE and mozilla this way.
e.g.
<t:dataTable id="yourList" forceId="true" ... >
css:
#yourList thead {
...
}
#yourList tbody {
...
}
If you can't use "forceId=true", then put a dummy div tag with
"forceId=true" around the table.
e.g.
<t:div id="dummydiv" forceId="true">
<t:dataTable id="yourList" ... >
css:
DIV#dummydiv thead {
...
}
DIV#dummydiv tbody {
...
}
Hope this helps
Michael
-----Original Message-----
From: joe_ersinghaus [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 2. Mai 2006 21:28
To: [email protected]
Subject: dataTable tbody and thead questions
Hello,
I'm using Terence Ordona's scrollable table found here:
http://www.imaputz.com/cssStuff/bigFourVersion.html, to create a fixed
header scrollable dataTable. I have to use javascript code to give the
rendered thead and tbody a class the way he styles his tbody and thead.
It
would be nice if myfaces dataTable allowed me to directly assign class
elements to these two bodies somewhere in the <t:dataTable assignment.
Is
this possible? I did see in the myfaces dataTable examples that at least
the
tbody is getting an id assigned to it, and I can always use
getElementById
to modify the style. So I guess the second question is if the tbody and
thead can't get a class, can I at least assign an id to the thead?
Thanks,
Joe
--
View this message in context:
http://www.nabble.com/dataTable-tbody-and-thead-questions-t1545301.html#
a4197856
Sent from the MyFaces - Users forum at Nabble.com.