Author: akushunin
Date: 2007-10-15 05:39:24 -0400 (Mon, 15 Oct 2007)
New Revision: 3363
Modified:
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
branches/3.1.x/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java
Log:
RF-1106
Modified:
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
===================================================================
---
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-10-15
09:30:04 UTC (rev 3362)
+++
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-10-15
09:39:24 UTC (rev 3363)
@@ -45,7 +45,7 @@
if(header != null ){
writer.startElement("thead", table);
String headerClass = (String)
table.getAttributes().get("headerClass");
- encodeTableHeaderFacet(context, table.getColumns(), writer, header,
"dr-table-header rich-table-header","dr-table-header-continue
rich-table-header-continue", "dr-table-headercell rich-table-headercell",
headerClass, "td");
+ encodeTableHeaderFacet(context, table.getColumns(), writer, header,
"dr-table-header rich-table-header","dr-table-header-continue
rich-table-header-continue", "dr-table-headercell rich-table-headercell",
headerClass, "th");
writer.endElement("thead");
}
}
Modified:
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
---
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2007-10-15
09:30:04 UTC (rev 3362)
+++
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2007-10-15
09:39:24 UTC (rev 3363)
@@ -98,7 +98,7 @@
"dr-table-header rich-table-header",
"dr-table-header-continue rich-table-header-continue",
"dr-table-headercell rich-table-headercell",
- headerClass, "td");
+ headerClass, "th");
}
if (headers.hasNext()&&findFacet(table,"header")) {
@@ -108,7 +108,7 @@
headerClass);
encodeHeaderFacets(context, writer, headers,
"dr-table-subheadercell rich-table-subheadercell",
- headerClass, "header", "td");
+ headerClass, "header", "th");
writer.endElement("tr");
}
@@ -388,4 +388,4 @@
}
return count;
}
-}
\ No newline at end of file
+}
Modified:
branches/3.1.x/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java
===================================================================
---
branches/3.1.x/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java 2007-10-15
09:30:04 UTC (rev 3362)
+++
branches/3.1.x/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java 2007-10-15
09:39:24 UTC (rev 3363)
@@ -166,7 +166,7 @@
classAttr = tr.getAttributeValue("class");
assertTrue(classAttr.contains("dr-table-header rich-table-header"));
- List tds = tr.getHtmlElementsByTagName("td");
+ List tds = tr.getHtmlElementsByTagName("th");
assertTrue(tds.size() > 0);
HtmlElement td = (HtmlElement) tds.get(0);
assertNotNull(td);