Author: akushunin
Date: 2007-10-15 05:30:04 -0400 (Mon, 15 Oct 2007)
New Revision: 3362
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java
Log:
Rf-1106
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
===================================================================
---
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-10-15
08:17:07 UTC (rev 3361)
+++
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-10-15
09:30:04 UTC (rev 3362)
@@ -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:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
---
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2007-10-15
08:17:07 UTC (rev 3361)
+++
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2007-10-15
09:30:04 UTC (rev 3362)
@@ -92,7 +92,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")) {
@@ -102,7 +102,7 @@
headerClass);
encodeHeaderFacets(context, writer, headers,
"dr-table-subheadercell rich-table-subheadercell",
- headerClass, "header", "td");
+ headerClass, "header", "th");
writer.endElement("tr");
}
Modified:
trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java
===================================================================
---
trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java 2007-10-15
08:17:07 UTC (rev 3361)
+++
trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java 2007-10-15
09:30:04 UTC (rev 3362)
@@ -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);
Show replies by date