diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java index 60c92e603a..c5b4966a95 100644 --- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java +++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java @@ -962,8 +962,15 @@ private void encodeHeaderRows( bar.encodeAll(facesContext); insideEnd(facesContext, Facets.bar); } - writer.endElement(HtmlElements.SPAN); + + final UIComponent after = ComponentUtils.getFacet(column, Facets.after); + if (after != null) { + insideBegin(facesContext, Facets.after); + after.encodeAll(facesContext); + insideEnd(facesContext, Facets.after); + } + if (!autoLayout) { if (column.isResizable()) { encodeResizing(writer, sheet, j - offset + cell.getColumnSpan() - 1);