Author: konstantin.mishin
Date: 2010-02-16 10:09:39 -0500 (Tue, 16 Feb 2010)
New Revision: 16460
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ExtendedDataTableRenderer.java
Log:
RF-8133
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ExtendedDataTableRenderer.java
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ExtendedDataTableRenderer.java 2010-02-16
15:05:00 UTC (rev 16459)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/ExtendedDataTableRenderer.java 2010-02-16
15:09:39 UTC (rev 16460)
@@ -128,7 +128,12 @@
writer.writeAttribute(HTML.CLASS_ATTRIBUTE,
HtmlUtil.concatClasses("rich-extable", (String) component
.getAttributes().get("styleClass")), null);
getUtils().writeAttribute(writer, HTML.STYLE_ATTRIBUTE,
component.getAttributes().get("style"));
-
+ UIComponent caption = component.getFacet("caption");
+ if (caption != null && caption.isRendered()) {
+ writer.startElement(HTML.DIV_ELEM, component);
+ renderChild(context, caption);
+ writer.endElement(HTML.DIV_ELEM);
+ }
}
@Override
@@ -139,12 +144,6 @@
table.captureOrigValue(context);
table.setRowKey(context, null);
RendererState state = new RendererState(context, table);
- UIComponent facet = table.getFacet("caption");
- if (facet != null && facet.isRendered()) {
- writer.startElement(HTML.DIV_ELEM, component);
- renderChild(context, facet);
- writer.endElement(HTML.DIV_ELEM);
- }
encodeStyle(state);
encodeHeaderOrFooter(state, "header");
encodeBody(state);
Show replies by date