Author: abelevich
Date: 2009-09-23 12:09:26 -0400 (Wed, 23 Sep 2009)
New Revision: 15664
Added:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIColumn.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIExtendedDataTable.java
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/html/HtmlExtendedDataTable.java
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/simple-datatable.js
root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/extendedtable.template.xml
Removed:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractSimpleDataTableRenderer.java
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/simpletable.template.xml
Log:
Added:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIColumn.java
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIColumn.java
(rev 0)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIColumn.java 2009-09-23
16:09:26 UTC (rev 15664)
@@ -0,0 +1,4 @@
+package org.richfaces.component;
+
+public class UIColumn extends javax.faces.component.UIColumn {
+}
Added:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIExtendedDataTable.java
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIExtendedDataTable.java
(rev 0)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/UIExtendedDataTable.java 2009-09-23
16:09:26 UTC (rev 15664)
@@ -0,0 +1,6 @@
+package org.richfaces.component;
+
+import javax.faces.component.UIData;
+
+public class UIExtendedDataTable extends UIData {
+}
Added:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/html/HtmlExtendedDataTable.java
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/html/HtmlExtendedDataTable.java
(rev 0)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/component/html/HtmlExtendedDataTable.java 2009-09-23
16:09:26 UTC (rev 15664)
@@ -0,0 +1,13 @@
+package org.richfaces.component.html;
+
+import org.richfaces.component.UIExtendedDataTable;
+
+public class HtmlExtendedDataTable extends UIExtendedDataTable{
+
+ public static final String COMPONENT_TYPE =
"org.richfaces.ExtendedDataTable";
+
+ public HtmlExtendedDataTable() {
+ setRendererType("org.richfaces.ExtendedDataTableRenderer");
+ }
+
+}
Deleted:
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractSimpleDataTableRenderer.java
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractSimpleDataTableRenderer.java 2009-09-23
12:47:38 UTC (rev 15663)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/java/org/richfaces/renderkit/AbstractSimpleDataTableRenderer.java 2009-09-23
16:09:26 UTC (rev 15664)
@@ -1,21 +0,0 @@
-package org.richfaces.renderkit;
-
-import java.io.IOException;
-
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.context.ResponseWriter;
-
-import org.ajax4jsf.renderkit.RendererBase;
-
-/**
- * @author Anton Belevich
- *
- */
-public abstract class AbstractSimpleDataTableRenderer extends RendererBase {
- @Override
- public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
- ResponseWriter writer = context.getResponseWriter();
- writer.writeText("simpleDataTable", null);
- }
-}
Added:
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/simple-datatable.js
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/simple-datatable.js
(rev 0)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/simple-datatable.js 2009-09-23
16:09:26 UTC (rev 15664)
@@ -0,0 +1 @@
+var i = 1;
\ No newline at end of file
Added:
root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/extendedtable.template.xml
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/extendedtable.template.xml
(rev 0)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/extendedtable.template.xml 2009-09-23
16:09:26 UTC (rev 15664)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<cdk:root
xmlns="http://richfaces.org/xhtml-el"
xmlns:cdk="http://richfaces.org/cdk"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ class="org.richfaces.renderkit.html.ExtendedDataTableRenderer"
+ superclass="org.richfaces.renderkit.ExtendedDataTableRendererBase"
+ componentclass="org.richfaces.component.UIExtendedDataTable">
+
+ ExtendedDataTable encoding ...
+
+
+</cdk:root>
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/simpletable.template.xml
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/simpletable.template.xml 2009-09-23
12:47:38 UTC (rev 15663)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/templates/org/richfaces/renderkit/html/simpletable.template.xml 2009-09-23
16:09:26 UTC (rev 15664)
@@ -3,8 +3,9 @@
<cdk:root
xmlns="http://richfaces.org/xhtml-el"
xmlns:cdk="http://richfaces.org/cdk"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
class="org.richfaces.renderkit.html.SimpleDataTableRenderer"
- superclass="org.richfaces.renderkit.AbstractSimpleDataTableRenderer"
+ superclass="org.richfaces.renderkit.SimpleDataTableRendererBase"
componentclass="org.richfaces.component.UISimpleDataTable">
-
- SimpleDataTable encoding ....
+ <table id="#{clientId}">
+ <cdk:call expression="encodeTableStructure(context,component);" />
+ </table>
</cdk:root>
\ No newline at end of file