Author: abelevich
Date: 2009-11-09 08:20:18 -0500 (Mon, 09 Nov 2009)
New Revision: 15854
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISubTable.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/table.css
Log:
add subTable "footer" facet support
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISubTable.java
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISubTable.java 2009-11-09
12:53:55 UTC (rev 15853)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UISubTable.java 2009-11-09
13:20:18 UTC (rev 15854)
@@ -119,7 +119,7 @@
@Override
public String getFooterFirstRowSkinClass() {
- return "rich-subtable-header";
+ return "rich-subtable-footer";
}
@Override
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java 2009-11-09
12:53:55 UTC (rev 15853)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/DataTableRenderer.java 2009-11-09
13:20:18 UTC (rev 15854)
@@ -103,9 +103,14 @@
childRowHolder.setHeaderRow(rowHolder.isHeaderRow());
if(child instanceof UISubTable) {
+ //ecode subTable header facet
encodeHeader(writer, context, (UISubTable)child);
}
encodeRows(context, childRow, childRowHolder);
+
+ if(child instanceof UISubTable) {
+ encodeFooter(writer, context, (UISubTable)child);
+ }
} else if(child instanceof UIColumn) {
@@ -141,7 +146,6 @@
}
processCell++;
}
-
}
}
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/table.css
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/table.css 2009-11-09
12:53:55 UTC (rev 15853)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/table.css 2009-11-09
13:20:18 UTC (rev 15854)
@@ -98,10 +98,18 @@
}
.rich-subtable-footer{
+ background-color: #7878B4;
}
.rich-subtable-footer-cell{
-
+ border-bottom:1px solid #C0C0C0;
+ border-right:1px solid #C0C0C0;
+ color:#000000;
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ font-weight:bold;
+ padding:4px;
+ text-align:left;
}
.rich-subtable-header {