try
{
// table id used for logging
this.id = id;
TableProperties properties = model.getProperties();
if (log.isDebugEnabled())
{
log.debug("[" + this.id + "] writeTable called for table [" + this.id + "]");
}
// Handle empty table
boolean noItems = model.getRowListPage().size() == 0;
if (noItems && !properties.getEmptyListShowTable())
{
writeEmptyListMessage(properties.getEmptyListMessage());
return;
}
// Put the page stuff there if it needs to be there...
if (properties.getAddPagingBannerTop())
{
// search result and navigation bar
writeTopBanner(model);
}