Author: ilya_shaikovsky
Date: 2010-05-21 10:24:08 -0400 (Fri, 21 May 2010)
New Revision: 17177
Added:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/extendedDataTable/
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml
Modified:
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml
root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml
Log:
https://jira.jboss.org/browse/RF-8298
Modified:
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-05-21
14:12:15 UTC (rev 17176)
+++
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-05-21
14:24:08 UTC (rev 17177)
@@ -174,6 +174,16 @@
</sample>
</samples>
</demo>
+ <demo>
+ <id>extendedDataTable</id>
+ <name>rich:extendedDataTable</name>
+ <samples>
+ <sample>
+ <id>simpleTable</id>
+ <name>ExtendedData Table Basic Usage</name>
+ </sample>
+ </samples>
+ </demo>
</demos>
</group>
</root>
Added:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml
(rev 0)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml 2010-05-21
14:24:08 UTC (rev 17177)
@@ -0,0 +1,63 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:tbl="http://richfaces.org/rich">
+
+<ui:composition>
+ <h:form>
+ <tbl:extendedDataTable value="#{carsBean.allInventoryItems}"
var="car"
+ id="table" frozenColumns="2" style="height:300px;
width:500px;">
+ <f:facet name="header">
+ <h:outputText value="Cars marketplace" />
+ </f:facet>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="vendor" />
+ </f:facet>
+ <h:outputText value="#{car.vendor}" />
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Model" />
+ </f:facet>
+ <h:outputText value="#{car.model}" />
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Price" />
+ </f:facet>
+ <h:outputText value="#{car.price}" />
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Mileage" />
+ </f:facet>
+ <h:outputText value="#{car.mileage}" />
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="VIN Code" />
+ </f:facet>
+ <h:outputText value="#{car.vin}" />
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Items stock" />
+ </f:facet>
+ <h:outputText value="#{car.stock}" />
+ </tbl:column>
+ <tbl:column>
+ <f:facet name="header">
+ <h:outputText value="Days Live" />
+ </f:facet>
+ <h:outputText value="#{car.daysLive}" />
+ </tbl:column>
+ </tbl:extendedDataTable>
+ <a4j:commandButton value="render" render="table" />
+ </h:form>
+</ui:composition>
+
+</html>
\ No newline at end of file
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml 2010-05-21
14:12:15 UTC (rev 17176)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml 2010-05-21
14:24:08 UTC (rev 17177)
@@ -8,14 +8,9 @@
<ui:insert name="demoSampleParameters"/>
<h:head>
+ <title>Components Gallery</title>
</h:head>
<h:body>
- <ui:composition>
- <html
xmlns="http://www.w3.org/1999/xhtml">
- <h:head>
- <title>Components Gallery</title>
- </h:head>
- <h:body>
<h:outputStylesheet name="rich/css/page.css" />
<table border="0" cellpadding="0" cellspacing="0"
class="rich-page #{cc.attrs.pageClass}">
@@ -63,9 +58,7 @@
</tr>
</tbody>
</table>
- </h:body>
- </html>
- </ui:composition>
-</h:body>
+
+</h:body>
</f:view>
</html>
\ No newline at end of file