Author: nbelaevski
Date: 2011-01-19 10:16:23 -0500 (Wed, 19 Jan 2011)
New Revision: 21086
Modified:
trunk/ui/iteration/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
Log:
https://issues.jboss.org/browse/RF-10187
Modified:
trunk/ui/iteration/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
---
trunk/ui/iteration/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2011-01-19
15:11:54 UTC (rev 21085)
+++
trunk/ui/iteration/ui/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2011-01-19
15:16:23 UTC (rev 21086)
@@ -356,8 +356,6 @@
String id = dataTable.getClientId(facesContext);
- setCellElement(facesContext, id, HtmlConstants.TH_ELEM);
-
boolean partialUpdateEncoded = false;
String clientId = dataTable.getClientId(facesContext);
@@ -370,6 +368,8 @@
}
writer.startElement(HtmlConstants.THEAD_ELEMENT, dataTable);
+ setCellElement(facesContext, id, HtmlConstants.TH_ELEM);
+
writer.writeAttribute(HtmlConstants.ID_ATTRIBUTE, headerClientId, null);
writer.writeAttribute(HtmlConstants.CLASS_ATTRIBUTE,
"rf-dt-thd", null);
}
@@ -424,6 +424,7 @@
}
if (encodeThead) {
+ setCellElement(facesContext, id, null);
writer.endElement(HtmlConstants.THEAD_ELEMENT);
if (partialUpdateEncoded) {
@@ -431,7 +432,6 @@
}
}
- setCellElement(facesContext, id, null);
}
}