Hi all, I posted a
bug report on Sourceforge issue tracker regarding an incorrect assignment of
colspan in case of an empty list. I report the same note here just to ask if
this happens to be fixed in version 1.0-b3.
***************************************************************************
If the list is emtpy, the row displaying the
"empty row
messagge" has a single TD element whose COLSPAN
attribute gets set one higher than it should be. This is
particularly bad if using table-layout: fixed as the extra
column causes the table to take all the available space.
The relevant code is in TableTag.java:
/********* WRONG CODE - START *********/
if (mTableModel.getRowListPage().size() == 0)
{
lBuffer.append("\t\t<tr class=\"even
empty\">\n");
lBuffer.append(
"<td colspan=\""
+ (mTableModel.getNumberOfColumns() +
1)
+ "\">"
+ mProp.getEmptyListMessage()
+ "</td></tr>");
}
/********* WRONG CODE - END *********/
/********* RIGHT CODE - START *********/
if (mTableModel.getRowListPage().size() == 0)
{
lBuffer.append("\t\t<tr class=\"even
empty\">\n");
lBuffer.append(
"<td colspan=\""
+ (mTableModel.getNumberOfColumns())
+ "\">"
+ mProp.getEmptyListMessage()
+ "</td></tr>");
}
Ai sensi del D.Lgs.196/2003 si precisa che le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La invitiamo ad eliminarlo senza copiarlo e a non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.messagge" has a single TD element whose COLSPAN
attribute gets set one higher than it should be. This is
particularly bad if using table-layout: fixed as the extra
column causes the table to take all the available space.
The relevant code is in TableTag.java:
/********* WRONG CODE - START *********/
if (mTableModel.getRowListPage().size() == 0)
{
lBuffer.append("\t\t<tr class=\"even
empty\">\n");
lBuffer.append(
"<td colspan=\""
+ (mTableModel.getNumberOfColumns() +
1)
+ "\">"
+ mProp.getEmptyListMessage()
+ "</td></tr>");
}
/********* WRONG CODE - END *********/
/********* RIGHT CODE - START *********/
if (mTableModel.getRowListPage().size() == 0)
{
lBuffer.append("\t\t<tr class=\"even
empty\">\n");
lBuffer.append(
"<td colspan=\""
+ (mTableModel.getNumberOfColumns())
+ "\">"
+ mProp.getEmptyListMessage()
+ "</td></tr>");
}
Pursuant to Legislative Decree No. 196/2003, you are hereby informed that this message contains confidential information intended only for the use of the addressee. If you are not the addressee, and have received this message by mistake, please delete it and immediately notify us. You may not copy or disseminate this message to anyone. Thank you.

