Author: ilya_shaikovsky
Date: 2007-08-31 09:42:07 -0400 (Fri, 31 Aug 2007)
New Revision: 2655
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/examples/form.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/usage.xhtml
Log:
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
---
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-08-31
13:40:47 UTC (rev 2654)
+++
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-08-31
13:42:07 UTC (rev 2655)
@@ -11,7 +11,7 @@
column= richDataIterators, Column, /images/ico_DataTable.gif,
/images/cn_Column.gif, RichFacesComponentsLibrary.html#column,
jbossrichfaces/freezone/docs/tlddoc/rich/column.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIColumn.html,
/richfaces/dataTable.jsf
columnGroup= richDataIterators, Column Group, /images/ico_DataTable.gif,
/images/cn_ColumnGroup.gif,
RichFacesComponentsLibrary.html#columnGroup,
jbossrichfaces/freezone/docs/tlddoc/rich/columnGroup.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIColumnGroup.html,
/richfaces/dataTable.jsf
dataDefinitionList= richDataIterators, Data Definition List,
/images/ico_DataTable.gif, /images/cn_DataDefinitionList.gif,
RichFacesComponentsLibrary.html#dataDefinitionList,
jbossrichfaces/freezone/docs/tlddoc/rich/dataDefinitionList.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDataDefinitionList.html,
/richfaces/comingSoon.jsf
-dataGrid= richDataIterators, Data Grid, /images/ico_DataTable.gif,
/images/cn_DataGrid.gif,
RichFacesComponentsLibrary.html#dataGrid,
jbossrichfaces/freezone/docs/tlddoc/rich/dataGrid.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDataGrid.html,
/richfaces/comingSoon.jsf
+dataGrid= richDataIterators, Data Grid, /images/ico_DataTable.gif,
/images/cn_DataGrid.gif,
RichFacesComponentsLibrary.html#dataGrid,
jbossrichfaces/freezone/docs/tlddoc/rich/dataGrid.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDataGrid.html,
/richfaces/dataGrid.jsf
dataList= richDataIterators, Data List,
/images/ico_DataTable.gif, /images/cn_DataList.gif,
RichFacesComponentsLibrary.html#dataList,
jbossrichfaces/freezone/docs/tlddoc/rich/dataList.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDataList.html,
/richfaces/comingSoon.jsf
dataOrderedList= richDataIterators, Data Ordered List, /images/ico_DataTable.gif,
/images/cn_DataOrderedList.gif,
RichFacesComponentsLibrary.html#dataOrderedList,
jbossrichfaces/freezone/docs/tlddoc/rich/dataOrderedList.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/taglib/DataOrderedListTag.html,
/richfaces/comingSoon.jsf
gmap= richMisc, Google Map, /images/ico_GoogleMap.gif,
/images/cn_GoogleMap.gif, RichFacesComponentsLibrary.html#gmap,
jbossrichfaces/freezone/docs/tlddoc/rich/gmap.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIGmap.html,
/richfaces/gmap.jsf
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/examples/form.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/examples/form.xhtml 2007-08-31
13:40:47 UTC (rev 2654)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/examples/form.xhtml 2007-08-31
13:42:07 UTC (rev 2655)
@@ -4,24 +4,36 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
+<style>
+.label{
+font-weight:bold;
+}
+</style>
<rich:panel>
- <f:facet name="header" value="Car Store"/>
- <rich:dataGrid value="#{dataTableScrollerBean.allCars}"
var="car">
+ <f:facet name="header">
+ <h:outputText value="Car Store"></h:outputText>
+ </f:facet>
+ <h:form>
+ <rich:dataGrid value="#{dataTableScrollerBean.allCars}"
var="car" columns="4" elements="12">
<rich:panel>
<f:facet name="header">
- <h:outputText value="#{car.make}
#{category.model}"></h:outputText>
+ <h:outputText value="#{car.make}
#{car.model}"></h:outputText>
</f:facet>
<h:panelGrid columns="2">
- <h:outputText value="Price:"
style="font-weight:bold;"></h:outputText>
- <h:outputText value="#{category.price}" />
- <h:outputText value="Mileage:"></h:outputText>
- <h:outputText value="#{category.mileage}" />
- <h:outputText value="VIN:"></h:outputText>
- <h:outputText value="#{category.vin}" />
- <h:outputText value="Stock:"></h:outputText>
- <h:outputText value="#{category.stock}" />
+ <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></rich:datascroller>
+ </f:facet>
</rich:dataGrid>
+ </h:form>
</rich:panel>
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/usage.xhtml 2007-08-31
13:40:47 UTC (rev 2654)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/usage.xhtml 2007-08-31
13:42:07 UTC (rev 2655)
@@ -19,7 +19,7 @@
<div class="sample-container" >
- <ui:include src="/richfaces/dataGrid/examples/report.xhtml"/>
+ <ui:include src="/richfaces/dataGrid/examples/form.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath"
value="/richfaces/dataGrid/examples/form.xhtml"/>
</ui:include>
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml
===================================================================
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/usage.xhtml
(rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/usage.xhtml 2007-08-31
13:42:07 UTC (rev 2655)
@@ -0,0 +1,31 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+
+
+ <p>
+ The <a4j:repeat> component implements a basic iteration component
allowing to update a set of its children with AJAX.
+ <br />
+ The folowing example shows the dataTable component in use:
+ </p>
+
+
+ <div class="sample-container" >
+
+ <ui:include src="/richfaces/dataTable/examples/repeater.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/dataTable/examples/repeater.xhtml"/>
+ </ui:include>
+
+ </div>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat.xhtml
(rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat.xhtml 2007-08-31
13:42:07 UTC (rev 2655)
@@ -0,0 +1,20 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components -
Data Grid</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server"
value="#{componentNavigator.activeTab}" styleClass="top_tab"
contentClass="content_tab" headerClass="header_tabs_class"
inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/repeat/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/repeat"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>