JSP Datatable fix Header

N

Newie

Hi everbody,

I want to make the header of my DataTable fix.
How can I do that? I have no idea

Here is a sample of my DataTable:

<TD>
<h:dataTable id="table1" value="#{auswahlBean.siLager}"
var="varsiLager" styleClass="dataTable"
headerClass="headerClass"
footerClass="footerClass" rowClasses="rowClass1, rowClass2"
border="0" cellpadding="2" cellspacing="0">

<h:column id="column1">
<f:facet name="header">
<h:eek:utputText styleClass="outputText" value="selected"
id="text14"></h:eek:utputText>
</f:facet>
<h:selectBooleanCheckbox styleClass="selectBooleanCheckbox"
id="checkbox1"
value="#{varsiLager.selected}"></h:selectBooleanCheckbox>
</h:column>
<h:column id="column2">
<f:facet name="header">
<h:eek:utputText styleClass="outputText" value="LagerNr"
id="text16"></h:eek:utputText>
</f:facet>
<h:eek:utputText id="text17"
value="#{varsiLager.lagerNr}" styleClass="outputText">
</h:eek:utputText>
</h:column>
<h:column id="column3">
<f:facet name="header">
<h:eek:utputText styleClass="outputText"
value="LagerName" id="text18"></h:eek:utputText>
</f:facet>
<h:eek:utputText id="text19" value="#{varsiLager.lagerName}"
styleClass="outputText">
</h:eek:utputText>
</h:column>
</h:dataTable>
</TD>

So can anybody help me??

Thanx
 
N

Newie

Andrew said:
Newie wrote:
...

The same way you do it in HTML.

Andrew T.

????
How would I do it in HTML. I am not so good in HTML,
the data below the header should be scrollable.
 
A

Andrew Thompson

Newie said:
....
How would I do it in HTML.

Would it make sense to ask Java programmers
how to write HTML? Especially when..
...I am not so good in HTML,

...that is a good description of most Java programmers,
though unfortunately, /most/ Java programmers (unlike
you) /think/ they are good at it. ;-)
the data below the header should be scrollable.

As I see it, pure HTML does not support what you want.
(Give me an URL of *any* table on the net with a fixed
header and scrollable data, that does not use Flash, applets,
JavaScript or some other supporting technology, and I will
eat my hat).

So besides pure HTML, there is Dynamic HTML, as it might
be altered by JavaScript*, for example. I think JS is the best
way to try and achieve the effect required.

* For a good JavaScript group, see..
<http://groups.google.com/group/comp.lang.javascript>

HTH

Andrew T.
 
N

Newie

Andrew said:
Would it make sense to ask Java programmers
how to write HTML? Especially when..


..that is a good description of most Java programmers,
though unfortunately, /most/ Java programmers (unlike
you) /think/ they are good at it. ;-)


As I see it, pure HTML does not support what you want.
(Give me an URL of *any* table on the net with a fixed
header and scrollable data, that does not use Flash, applets,
JavaScript or some other supporting technology, and I will
eat my hat).

So besides pure HTML, there is Dynamic HTML, as it might
be altered by JavaScript*, for example. I think JS is the best
way to try and achieve the effect required.

* For a good JavaScript group, see..
<http://groups.google.com/group/comp.lang.javascript>

HTH

Andrew T.

ok thanx for your answers, I will look if I find any exampel.

Newie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top