ciao a tutti!
spero di scrivere nella sezione giusta...
il mio problema consiste nel creare una tabella che,se supera un certo numero di elementi ,crei l effetto scroll...la tabella viene creata dinamicamente usando struts e ho letto che basta impostare altezza e overflow:scroll in tbody...ma nn sono sicuro e cmq non funziona...ecco il codice :
codice:
<table id="thetable" class="tabella_ricerca" border="0">
<thead>
<tr>
<td><h1><bean:message key="label.NomeDoc" /></h1></td>
<td><h1><bean:message key="label.TipoFile" /></h1></td>
<td><h1><bean:message key="label.DataCaricamento" /></h1></td>
<td><h1><bean:message key="label.link" /></h1></td>
<td><h1><bean:message key="label.DownloadFile" /></h1></td>
<td><h1><bean:message key="label.DeleteFile" /></h1></td>
</tr>
</thead>
<tbody style=" height:100px overflow:scroll">
<logic:notEmpty name="data">
<logic:iterate name="data" id="dataList" scope="request">
<bean:define id="nome" type="java.lang.String">
<bean:write name="dataList" property="name"/>
</bean:define>
<bean:define id="tipo" type="java.lang.String">
<bean:write name="dataList" property="type"/>
</bean:define>
<bean:define id="Rocchio" type="java.lang.String">
<bean:write name="dataList" property="rocchio"/>
</bean:define>
<bean:define id="Example" type="java.lang.String">
<bean:write name="dataList" property="example"/>
</bean:define>
<bean:define id="Bayes" type="java.lang.String">
<bean:write name="dataList" property="bayes"/>
</bean:define>
<bean:define id="datacaricamento" type="java.lang.String">
<bean:write name="dataList" property="datacaricamento"/>
</bean:define>
<bean:define id="TagList" type="java.lang.String">
<bean:write name="dataList" property="valori"/>
</bean:define>
<bean:define id="TagNomiList" type="java.lang.String">
<bean:write name="dataList" property="nomivalori"/>
</bean:define>
<tr><td> <bean:write name="dataList" property="name"/></td>
<td> <bean:write name="dataList" property="type"/></td>
<td> <bean:write name="dataList" property="datacaricamento"/></td>
<td> <html:button property="bottone_view" onclick="openWindow('${nome}','${tipo}','${Rocchio}','${Example}','${Bayes}','${datacaricamento}','${TagList}','${TagNomiList}')">View</html:button></td>
<%--<td> <html:link href="LocalDownload.do?method=download&nome=${nome}&tipo=${tipo} " >Download</html:link></td>--%>
<td> <html:button property="bottone_download" onclick="location.href='LocalDownload.do?method=download&nome=${nome}&tipo=${tipo}'" >Download</html:button></td>
<td> <html:button property="bottone_cancel" onclick="WindowDelete('${nome}','${tipo}')" >Cancel</html:button></td>
</tr>
</logic:iterate>
</logic:notEmpty>
</tbody>
</table>
qualcuno può aiutarmi?