- Utilizzo di css
.widget_tableDiv {
position: relative; /* to capture the absolutely positioned table header */
padding-top: 45px; /* space for the column heads */
width: auto;
margin: 0 auto;
}
/* this enables the table to scroll without scrolling the page */
.innerframe {
overflow: auto;
width: auto;
height: 300px; /* height is required */
}
/* position the row of column heads above the table */
.widget_tableDiv thead tr {
position: absolute; /* throws the header out of the table */
top: 0px;
left: 0px;
height: 44px;
}
.widget_tableDiv tfoot tr {
position: absolute; /* throws the footer out of the table */
top: 345px;
left: 0px;
}
table {
/*border-right: solid 1px slategray;*/
width:auto;
}
poi nella jsp:#
<div class="widget_tableDiv" id="widget_tableDiv">
<!--<div id="divTable<%=tb.getRandomId()%>">-->
<div id="innerframe" class="XYZ" >
<table id="myTable<%=tb.getRandomId()%>" <%if(!IE) out.print("class=\"scrollable\"");%> >
<thead>
<tr>
<%
int y=0;
for (int i = 0; i < tb.getHeaderSize(); i++) {
//if(tb.getHeader().get(i).getValue("IO").equalsIgnoreCase("H")) continue;
%>
<td><%=tb.getHeaderDesc(i).replaceAll("\\|", "<br>")%><br>
<select id="idFiltro<%=y%>" onchange="javascript:executeFilter(this.id,true)" /> </td>
<%y++;}%>
</tr>
</thead>
<tfoot id="footerid">
<tr id="totidrow">
<%
y=0;
for (int i = 0; i < tb.getHeaderSize(); i++) {
//if(tb.getHeader().get(i).getValue("IO").equalsIgnoreCase("H")) continue;
%>
<td id="totid<%=y%>"></td>
<%y++;}%>
</tr>
</tfoot>
<tbody>
<% for (int i = 0; i < tb.getNumbersOfRows(); i++) {%>
<tr id="row<%=i%>" <% if(target != null && !target.equalsIgnoreCase("")){
%>
Add new attachment
Only authorized users are allowed to upload new attachments.