private void paintRows(final WDataTable table, final WebXmlRenderContext renderContext) {
		XmlStringBuilder xml = renderContext.getWriter();
		TableDataModel model = table.getDataModel();

		xml.appendTagOpen("ui:tbody");
		xml.appendAttribute("id", table.getRepeater().getId());
		xml.appendClose();

		if (model.getRowCount() == 0) {
			xml.appendTag("ui:nodata");
			xml.appendEscaped(table.getNoDataMessage());
			xml.appendEndTag("ui:nodata");
		} else {
			// If has at least one visible col, paint the rows.
			final int columnCount = table.getColumnCount();

			for (int i = 0; i < columnCount; i++) {
				if (table.getColumn(i).isVisible()) {
					doPaintRows(table, renderContext);
					break;
				}
			}
		}

		xml.appendEndTag("ui:tbody");
	}
private void paintRows ( final WDataTable table , final WebXmlRenderContext renderContext ) { XmlStringBuilder xml = renderContext . getWriter ( ) ; TableDataModel model = table . getDataModel ( ) ; xml . appendTagOpen ( "ui:tbody" ) ; xml . appendAttribute ( "id" , table . getRepeater ( ) . getId ( ) ) ; xml . appendClose ( ) ; if ( model . getRowCount ( ) == 0 ) { xml . appendTag ( "ui:nodata" ) ; xml . appendEscaped ( table . getNoDataMessage ( ) ) ; xml . appendEndTag ( "ui:nodata" ) ; } else { final int columnCount = table . getColumnCount ( ) ; for ( int i = 0 ; i < columnCount ; i ++ ) { if ( table . getColumn ( i ) . isVisible ( ) ) { doPaintRows ( table , renderContext ) ; break ; } } } xml . appendEndTag ( "ui:tbody" ) ; }
Paints the rows of the table.

@param table the table to paint the rows for.
@param renderContext the RenderContext to paint to.