TableRenderingContext tContext,
UIComponent component
) throws IOException
{
tContext.getRenderStage().setStage(RenderStage.COLUMN_FOOTER_STAGE);
final ColumnData colData = tContext.getColumnData();
UIComponent footer = getFacet(component, CoreTable.FOOTER_FACET);
if (footer != null)
{
ResponseWriter writer = context.getResponseWriter();
writer.startElement(XhtmlConstants.TABLE_ROW_ELEMENT, null);
/* boolean useScroll = (getHeight(getFacesBean(component)) != null) && isIE(arc);
if (useScroll)
{
writer.writeAttribute("style", "position:relative;"+
"bottom:expression("+
"this.offsetParent.scrollHeight-this.offsetParent.scrollTop-"+
"this.offsetParent.clientHeight+1);" +
"left:-1px", null);
}
*/
writer.startElement(XhtmlConstants.TABLE_HEADER_ELEMENT, null);
// total rows may need an ID. see bug 3211593:
/* Need new scheme for generateUniqueId()?
String rowID = XhtmlLafUtils.generateUniqueID(tContext);
writer.writeAttribute(XhtmlLafConstants.ID_ATTRIBUTE, rowID, null);
tContext.getRowData().setCurrentRowHeaderID(rowID);
*/
final int firstFooterPhysicalIndex =
colData.getPhysicalIndexOfFirstFooter();
final int colSpan =
(firstFooterPhysicalIndex > 0)? firstFooterPhysicalIndex:
tContext.getActualColumnCount();
writer.writeAttribute(XhtmlConstants.COLSPAN_ATTRIBUTE,
IntegerUtils.getString(colSpan), null);
renderStyleClass(context, rc,
SkinSelectors.AF_TABLE_COLUMN_FOOTER_STYLE);
encodeChild(context, footer);
writer.endElement(XhtmlConstants.TABLE_HEADER_ELEMENT);
if (firstFooterPhysicalIndex > 0)
{
colData.setColumnIndex(tContext.getSpecialColumnCount(),
0) /*logicalColumnIndex*/;
for (UIComponent child:
(List<UIComponent>) component.getChildren())
{