[richfaces-svn-commits] JBoss Rich Faces SVN: r2657 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: messages/examples and 2 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Aug 31 10:06:03 EDT 2007


Author: ilya_shaikovsky
Date: 2007-08-31 10:06:03 -0400 (Fri, 31 Aug 2007)
New Revision: 2657

Added:
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml
Removed:
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml
Modified:
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/usage.xhtml
Log:


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 14:01:17 UTC (rev 2656)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/usage.xhtml	2007-08-31 14:06:03 UTC (rev 2657)
@@ -13,7 +13,7 @@
 			<p>The component takes a list from a model and outputs it the same way as with 
 			&lt;h:PanelGrid&gt; for inline data. To define grid properties and styles, use the same 
 			definitions as for &lt;h:panelGrid&gt;.<br />
-			The folowing example shows the dataTable component in use:
+			The folowing example shows the dataGrid component in use:
 			</p>
 			
 

Deleted: trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml	2007-08-31 14:01:17 UTC (rev 2656)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml	2007-08-31 14:06:03 UTC (rev 2657)
@@ -1,63 +0,0 @@
-<ui:composition 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">
-	
-		<style type="text/css">
-			.rich-message-marker img {
-				padding-right:7px;
-			}
-			.rich-message-label {
-				color:red;
-			}
-			.top{
-				vertical-align:top;
-			}
-		</style>		
-			
-			
-		<rich:panel>
-			<f:facet name="header">
-				<h:outputText value="Form Validation. Using rich:messages"/>
-			</f:facet>
-			
-			<h:form>
-				<h:panelGrid columns="2" columnClasses="top">
-				<h:panelGrid columns="2">
-					<h:outputText value="Name:" />
-					<h:inputText label="Name" id="name" required="true" value="#{userBean.name}">
-						<f:validateLength minimum="3"  />
-					</h:inputText>
-					<h:outputText value="Job:" />
-					<h:inputText label="Job" id="job" required="true" value="#{userBean.job}">
-						<f:validateLength minimum="3" maximum="50"  />
-					</h:inputText>
-					<h:outputText value="Address:" />
-					<h:inputText label="Address" id="address" required="true" value="#{userBean.address}">
-						<f:validateLength minimum="10" />
-					</h:inputText>
-					<h:outputText value="Zip:" />
-					<h:inputText label="Zip" id="zip" required="true" value="#{userBean.zip}">
-						<f:validateLength minimum="4" maximum="9"  />
-					</h:inputText>
-					<f:facet name="footer">
-						<a4j:commandButton value="Validate" />
-					</f:facet> 
-				</h:panelGrid>
-					<rich:messages passedLabel="Data is allowed to be stored." layout="list">
-						<f:facet name="header">
-							<h:outputText value="Entered Data Status:"></h:outputText>
-						</f:facet>
-						<f:facet name="passedMarker">
-							<h:graphicImage  value="/images/ajax/passed.gif" />	
-						</f:facet>
-						<f:facet name="errorMarker">
-							<h:graphicImage value="/images/ajax/error.gif" />	
-						</f:facet>
-					</rich:messages>
-					</h:panelGrid>
-			</h:form>
-		</rich:panel>
-</ui:composition>
\ No newline at end of file

Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml	                        (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml	2007-08-31 14:06:03 UTC (rev 2657)
@@ -0,0 +1,63 @@
+<ui:composition 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">
+	
+		<style type="text/css">
+			.rich-message-marker img {
+				padding-right:7px;
+			}
+			.rich-message-label {
+				color:red;
+			}
+			.top{
+				vertical-align:top;
+			}
+		</style>		
+			
+			
+		<rich:panel>
+			<f:facet name="header">
+				<h:outputText value="Form Validation. Using rich:messages"/>
+			</f:facet>
+			
+			<h:form>
+				<h:panelGrid columns="2" columnClasses="top">
+				<h:panelGrid columns="2">
+					<h:outputText value="Name:" />
+					<h:inputText label="Name" id="name" required="true" value="#{userBean.name}">
+						<f:validateLength minimum="3"  />
+					</h:inputText>
+					<h:outputText value="Job:" />
+					<h:inputText label="Job" id="job" required="true" value="#{userBean.job}">
+						<f:validateLength minimum="3" maximum="50"  />
+					</h:inputText>
+					<h:outputText value="Address:" />
+					<h:inputText label="Address" id="address" required="true" value="#{userBean.address}">
+						<f:validateLength minimum="10" />
+					</h:inputText>
+					<h:outputText value="Zip:" />
+					<h:inputText label="Zip" id="zip" required="true" value="#{userBean.zip}">
+						<f:validateLength minimum="4" maximum="9"  />
+					</h:inputText>
+					<f:facet name="footer">
+						<a4j:commandButton value="Validate" />
+					</f:facet> 
+				</h:panelGrid>
+					<rich:messages passedLabel="Data is allowed to be stored." layout="list">
+						<f:facet name="header">
+							<h:outputText value="Entered Data Status:"></h:outputText>
+						</f:facet>
+						<f:facet name="passedMarker">
+							<h:graphicImage  value="/images/ajax/passed.gif" />	
+						</f:facet>
+						<f:facet name="errorMarker">
+							<h:graphicImage value="/images/ajax/error.gif" />	
+						</f:facet>
+					</rich:messages>
+					</h:panelGrid>
+			</h:form>
+		</rich:panel>
+</ui:composition>
\ No newline at end of file

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml	2007-08-31 14:01:17 UTC (rev 2656)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml	2007-08-31 14:06:03 UTC (rev 2657)
@@ -0,0 +1,45 @@
+<ui:composition 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">
+
+			
+		<h:form>
+			<rich:spacer height="30" />
+			<rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1" height="400px" 
+				width="700px" id="carList" rows="40" columnClasses="col"
+				value="#{dataTableScrollerBean.allCars}" var="category" sortMode="single">
+
+				<rich:column id="make">
+					<f:facet name="header"><h:outputText styleClass="headerText" value="Make" /></f:facet>
+					<h:outputText value="#{category.make}" />
+				</rich:column>
+				<rich:column id="model">
+					<f:facet name="header"><h:outputText styleClass="headerText" value="Model" /></f:facet>
+					<h:outputText value="#{category.model}" />
+				</rich:column>
+				<rich:column id="price">
+					<f:facet name="header"><h:outputText styleClass="headerText" value="Price" /></f:facet>
+					<h:outputText value="#{category.price}" />
+				</rich:column>
+				<rich:column id="mileage">
+					<f:facet name="header"><h:outputText styleClass="headerText" value="Mileage" /></f:facet>
+					<h:outputText value="#{category.mileage}" />
+				</rich:column>
+				<rich:column width="200px" id="vin">
+					<f:facet name="header"><h:outputText styleClass="headerText" value="VIN" /></f:facet>
+					<h:outputText value="#{category.vin}" />
+				</rich:column>
+				<rich:column id="stock">
+					<f:facet name="header"><h:outputText styleClass="headerText" value="Stock" /></f:facet>
+					<h:outputText value="#{category.stock}" />
+				</rich:column>
+
+
+
+			</rich:scrollableDataTable>
+		</h:form>
+
+</ui:composition>
\ No newline at end of file

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/usage.xhtml	2007-08-31 14:01:17 UTC (rev 2656)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/usage.xhtml	2007-08-31 14:06:03 UTC (rev 2657)
@@ -11,9 +11,11 @@
 
 			
 			<p>
-			The &lt;a4j:repeat&gt; component implements a basic iteration component allowing to update a set of its children with AJAX.
+			The &lt;a4j:repeat&gt; component implements a basic iteration component. 
+			Additionally to facelets &lt;ui:repeat&gt; component it allows to update 
+			a set of its children instead of the whole using AJAX reuqests.
 			<br />
-			The folowing example shows the dataTable component in use:
+			The folowing example shows the repeat component in use:
 			</p>
 			
 




More information about the richfaces-svn-commits mailing list