Author: ilya_shaikovsky
Date: 2010-07-26 07:36:55 -0400 (Mon, 26 Jul 2010)
New Revision: 18231
Added:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataGrid/
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataGrid/grid.xhtml
Modified:
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml
Log:
https://jira.jboss.org/browse/RF-8967
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-07-26
11:23:32 UTC (rev 18230)
+++
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-07-26
11:36:55 UTC (rev 18231)
@@ -52,7 +52,7 @@
</sample>
</samples>
</demo>
- <demo new="true">
+ <demo>
<id>poll</id>
<name>a4j:poll</name>
<samples>
@@ -72,7 +72,7 @@
</sample>
</samples>
</demo>
- <demo new="true">
+ <demo>
<id>param</id>
<name>a4j:param</name>
<samples>
@@ -95,7 +95,7 @@
<group>
<name>Ajax Queue</name>
<demos>
- <demo new="true">
+ <demo>
<id>queue</id>
<name>a4j:queue</name>
<samples>
@@ -105,7 +105,7 @@
</sample>
</samples>
</demo>
- <demo new="true">
+ <demo>
<id>attachQueue</id>
<name>a4j:attachQueue</name>
<samples>
@@ -152,7 +152,7 @@
</sample>
</samples>
</demo>
- <demo new="true">
+ <demo>
<id>region</id>
<name>a4j:region</name>
<samples>
@@ -184,7 +184,7 @@
</demo>
</demos>
</group>
- <group new="true">
+ <group>
<name>Data Iteration</name>
<demos>
<demo>
@@ -264,7 +264,7 @@
</sample>
</samples>
</demo>
- <demo>
+ <demo new="true">
<id>list</id>
<name>rich:list</name>
<samples>
@@ -274,9 +274,34 @@
</sample>
</samples>
</demo>
+ <demo new="true">
+ <id>dataGrid</id>
+ <name>rich:dataGrid</name>
+ <samples>
+ <sample>
+ <id>grid</id>
+ <name>Data Grid Component</name>
+ </sample>
+ </samples>
+ </demo>
</demos>
</group>
- <group new="true">
+ <!-- group>
+ <name>Panels</name>
+ <demos>
+ <demo>
+ <id>divPanel</id>
+ <name>rich:divPanel</name>
+ <samples>
+ <sample>
+ <id>simple</id>
+ <name>Simple divPanel component</name>
+ </sample>
+ </samples>
+ </demo>
+ </demos>
+ </group-->
+ <group>
<name>Misc Components/Features</name>
<demos>
<demo>
Added:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataGrid/grid.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataGrid/grid.xhtml
(rev 0)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataGrid/grid.xhtml 2010-07-26
11:36:55 UTC (rev 18231)
@@ -0,0 +1,53 @@
+<!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:rich="http://richfaces.org/rich">
+
+<ui:composition>
+ <p>The component takes iterates a model as any other iteration
+ component and outputs it the same way as <h:PanelGrid> does for
+ inline data. To define grid properties and styles, use the same
+ definitions as for <h:panelGrid>.</p>
+ <p>The following example shows the dataGrid component in use:</p>
+ <style>
+.label {
+ font-weight: bold;
+}
+
+.pbody {
+ width: 200px;
+}
+</style>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="Car Store"></h:outputText>
+ </f:facet>
+ <h:form>
+ <rich:dataGrid value="#{carsBean.allInventoryItems}" var="car"
+ columns="3" elements="9" width="600px">
+ <rich:panel bodyClass="pbody">
+ <f:facet name="header">
+ <h:outputText value="#{car.vendor}
#{car.model}"></h:outputText>
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText value="Price:"
styleClass="label"></h:outputText>
+ <h:outputText value="#{car.price}" />
+ <h:outputText value="Mileage:"
styleClass="label"></h:outputText>
+ <h:outputText value="#{car.mileage}" />
+ <h:outputText value="VIN:"
styleClass="label"></h:outputText>
+ <h:outputText value="#{car.vin}" />
+ <h:outputText value="Stock:"
styleClass="label"></h:outputText>
+ <h:outputText value="#{car.stock}" />
+ </h:panelGrid>
+ </rich:panel>
+ <f:facet name="footer">
+ <rich:dataScroller/>
+ </f:facet>
+ </rich:dataGrid>
+ </h:form>
+ </rich:panel>
+</ui:composition>
+</html>
\ No newline at end of file