JBoss Rich Faces SVN: r2657 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: messages/examples and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
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
<h:PanelGrid> for inline data. To define grid properties and styles, use the same
definitions as for <h:panelGrid>.<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 <a4j:repeat> component implements a basic iteration component allowing to update a set of its children with AJAX.
+ The <a4j:repeat> component implements a basic iteration component.
+ Additionally to facelets <ui:repeat> 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>
17 years, 3 months
JBoss Rich Faces SVN: r2656 - in trunk/cdk/generator/src/main/resources/META-INF: templates12 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-31 10:01:17 -0400 (Fri, 31 Aug 2007)
New Revision: 2656
Modified:
trunk/cdk/generator/src/main/resources/META-INF/templates/componentTag.vm
trunk/cdk/generator/src/main/resources/META-INF/templates/tag.vm
trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm
trunk/cdk/generator/src/main/resources/META-INF/templates12/tag.vm
Log:
NPE on null non-el attributes fixed
Modified: trunk/cdk/generator/src/main/resources/META-INF/templates/componentTag.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates/componentTag.vm 2007-08-31 13:42:07 UTC (rev 2655)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates/componentTag.vm 2007-08-31 14:01:17 UTC (rev 2656)
@@ -78,7 +78,7 @@
#foreach( $prop in $component.properties )
#if( !$prop.existintag )
#if(!$prop.el)
- if(isValueReference(this._${prop.name})){
+ if(null != this._${prop.name} && isValueReference(this._${prop.name})){
throw new IllegalArgumentException("Component ${component.name} with Id " + component.getClientId(getFacesContext()) +" not allowed EL expression for property ${prop.name}");
}
#end
Modified: trunk/cdk/generator/src/main/resources/META-INF/templates/tag.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates/tag.vm 2007-08-31 13:42:07 UTC (rev 2655)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates/tag.vm 2007-08-31 14:01:17 UTC (rev 2656)
@@ -83,7 +83,7 @@
#foreach( $prop in $component.properties )
#if( !$prop.existintag )
#if(!$prop.el)
- if(isValueReference(this._${prop.name})){
+ if(null != this._${prop.name} && isValueReference(this._${prop.name})){
throw new IllegalArgumentException("Component ${component.name} with Id " + component.getClientId(getFacesContext()) +" not allowed EL expression for property ${prop.name}");
}
#end
Modified: trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm 2007-08-31 13:42:07 UTC (rev 2655)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm 2007-08-31 14:01:17 UTC (rev 2656)
@@ -78,7 +78,7 @@
#foreach( $prop in $component.properties )
#if( !$prop.existintag )
#if(!$prop.el)
- if(isValueReference(this._${prop.name})){
+ if(null != this._${prop.name} && isValueReference(this._${prop.name})){
throw new IllegalArgumentException("Component ${component.name} with Id " + component.getClientId(getFacesContext()) +" not allowed EL expression for property ${prop.name}");
}
#end
Modified: trunk/cdk/generator/src/main/resources/META-INF/templates12/tag.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates12/tag.vm 2007-08-31 13:42:07 UTC (rev 2655)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates12/tag.vm 2007-08-31 14:01:17 UTC (rev 2656)
@@ -83,7 +83,7 @@
#foreach( $prop in $component.properties )
#if( !$prop.existintag )
#if(!$prop.el)
- if(isValueReference(this._${prop.name})){
+ if(null != this._${prop.name} && isValueReference(this._${prop.name})){
throw new IllegalArgumentException("Component ${component.name} with Id " + component.getClientId(getFacesContext()) +" not allowed EL expression for property ${prop.name}");
}
#end
17 years, 3 months
JBoss Rich Faces SVN: r2655 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
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>
17 years, 3 months
JBoss Rich Faces SVN: r2654 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-31 09:40:47 -0400 (Fri, 31 Aug 2007)
New Revision: 2654
Modified:
trunk/docs/userguide/en/src/main/docbook/included/effect.xml
trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/messages.xml
trunk/docs/userguide/en/src/main/docbook/included/push.xml
Log:
http://jira.jboss.com/jira/browse/RF-398
some spelling mistakes are corrected
Modified: trunk/docs/userguide/en/src/main/docbook/included/effect.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/effect.xml 2007-08-31 12:58:25 UTC (rev 2653)
+++ trunk/docs/userguide/en/src/main/docbook/included/effect.xml 2007-08-31 13:40:47 UTC (rev 2654)
@@ -130,14 +130,13 @@
</figure>
<para>
-<emphasis><property>"name"</property></emphasis> attribute defines a name of the JavaScript function will
-be generated on the page when the component is rendered. You can invoke this function to activate the effect. The function accesses one parameter.
+<emphasis><property>"name"</property></emphasis> attribute defines a name of the JavaScript function that is
+be generated on a page when the component is rendered. You can invoke this function to activate the effect. The function accesses one parameter.
It is a set of effect options in JSON format.
</para>
<para>
-<emphasis><property>"type"</property></emphasis> attribute defines the type of an effect. For example, "Fade", "Blind", "Opacity". Have a look at <ulink url="http://script.aculo.us">scriptaculous documentation</ulink>
-for set of available effect.
+<emphasis><property>"type"</property></emphasis> attribute defines the type of an effect. For example, "Fade", "Blind", "Opacity". Have a look at <ulink url="http://script.aculo.us">scriptaculous documentation</ulink> for set of available effect.
</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml 2007-08-31 12:58:25 UTC (rev 2653)
+++ trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml 2007-08-31 13:40:47 UTC (rev 2654)
@@ -25,10 +25,10 @@
<title>Key Features</title>
<itemizedlist>
<listitem>Highly customizable look and feel</listitem>
- <listitem>Track both traditional and ajax based requests</listitem>
- <listitem>Optional tooltip to display the detail portion of the messages</listitem>
+ <listitem>Track both traditional and Ajax based requests</listitem>
+ <listitem>Optional tooltip to display a detailed part of the messages</listitem>
<listitem>Additionally customizable via attributes and facets</listitem>
- <listitem>Additionally provides of three parts to be optionally defined: marker, label and header</listitem>
+ <listitem>Additionally provides of three parts to be optionally defined: marker, label and header</listitem>
</itemizedlist>
</section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/messages.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/messages.xml 2007-08-31 12:58:25 UTC (rev 2653)
+++ trunk/docs/userguide/en/src/main/docbook/included/messages.xml 2007-08-31 13:40:47 UTC (rev 2654)
@@ -78,23 +78,23 @@
request automatically without outputPanel usage.</listitem>
<listitem>The component optionally provides "passed" state which will be
shown if no message to be displayed.</listitem>
- <listitem>Provides possibility to add some marker to message. By default marker element
+ <listitem>Provides possibility to add some marker to message. By default, a marker element
isn't shown.</listitem>
</itemizedlist>
</para>
- <para>Component provides three parts to be optionally defined: marker, informational label
- before the marker for the every message and header element placed before the messages list.
+ <para>The component provides three parts to be optionally defined: marker, informational label
+ before the marker for every message and header element placed before the messages list.
Header and marker are optional. They don't present by default for compatibility with standard
messages. Labels are displayed for errors and one passed label is displayed optionally (if it's
defined) when no errors occured.</para>
- <para> Set of facet which can be used for marker defining: <itemizedlist>
+ <para> Set of facet which can be used for a marker defining: <itemizedlist>
<listitem>header. This facet defines additional content to be displayed near the list. Header is positioned on top of the messages component.</listitem>
- <listitem>passedHeader. This facet is provided to allow end developer set a header content to be displayed if there are no messages.</listitem>
- <listitem>passedMarker. This facet is provided to allow set a marker to be displayed if there is no message.</listitem>
- <listitem>errorMarker. This facet is provided to allow set a marker to be displayed if there is a message with a severity class of "ERROR".</listitem>
- <listitem>fatalMarker. This facet is provided to allow set a marker to be displayed if there is a message with a severity class of "FATAL".</listitem>
- <listitem>infoMarker. This facet is provided to allow set a marker to be displayed if there is a message with a severity class of "INFO".</listitem>
- <listitem>warnMarker. This facet is provided to allow set a marker to be displayed if there is an message with a severity class of "WARN".</listitem>
+ <listitem>passedHeader. This facet is provided to allow an end developer setting a header content to be displayed if there are no messages.</listitem>
+ <listitem>passedMarker. This facet is provided to allow setting a marker to be displayed if there is no message.</listitem>
+ <listitem>errorMarker. This facet is provided to allow setting a marker to be displayed if there is a message with a severity class of "ERROR".</listitem>
+ <listitem>fatalMarker. This facet is provided to allow setting a marker to be displayed if there is a message with a severity class of "FATAL".</listitem>
+ <listitem>infoMarker. This facet is provided to allow setting a marker to be displayed if there is a message with a severity class of "INFO".</listitem>
+ <listitem>warnMarker. This facet is provided to allow setting a marker to be displayed if there is an message with a severity class of "WARN".</listitem>
</itemizedlist>
</para>
@@ -135,7 +135,7 @@
<para>To redefine appearance of all <emphasis role="bold">
<property><rich:messages></property>
</emphasis> components, you may define the properties of the predefined style classes in the
- common CSS style sheet used on the page (there are no skin parameters and predefined values by
+ common CSS style sheet used on a page (there are no skin parameters and predefined values by
default to make it compatible with the standard message component). </para>
</section>
@@ -206,7 +206,7 @@
</emphasis> components on a page using CSS, it's enough to create classes with the
same names and define the necessary properties in them.</para>
- <para>To change the style of particular <emphasis role="bold">
+ <para>To change the style of a particular <emphasis role="bold">
<property><rich:messages></property>
</emphasis> components define your own style classes in the corresponding <emphasis role="bold">
<property><rich:messages></property>
Modified: trunk/docs/userguide/en/src/main/docbook/included/push.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/push.xml 2007-08-31 12:58:25 UTC (rev 2653)
+++ trunk/docs/userguide/en/src/main/docbook/included/push.xml 2007-08-31 13:40:47 UTC (rev 2654)
@@ -58,7 +58,7 @@
</para>
<para>
'interval' - Interval (in ms) for call push requests. Default value 1000 (1 sec).
-<!-- If "0" a connection is permanent. Also user can set different value for parameter 'timeout'. -->
+<!-- If "0" a connection is permanent. Also you can set different value for parameter 'timeout'. -->
</para>
<para>
Code for registration of listener:
17 years, 3 months
JBoss Rich Faces SVN: r2653 - trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-08-31 08:58:25 -0400 (Fri, 31 Aug 2007)
New Revision: 2653
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
small additional fix (RF-788)
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-31 12:51:47 UTC (rev 2652)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-31 12:58:25 UTC (rev 2653)
@@ -1241,9 +1241,9 @@
if (!this.selectedDate) return;
this.selectedDate=null;
this.render();
- if (this.params.popup) Richfaces.createEvent ('click', window.document).fire();
-
$(this.INPUT_DATE_ID).value="";
+
+ if (this.params.popup) this.doCollapse();
}
});
17 years, 3 months
JBoss Rich Faces SVN: r2652 - in trunk/framework: impl/src/main/resources/META-INF/skins and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-08-31 08:51:47 -0400 (Fri, 31 Aug 2007)
New Revision: 2652
Modified:
trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java
trunk/framework/impl/src/main/resources/META-INF/skins/DEFAULT.skin.properties
trunk/framework/impl/src/main/resources/META-INF/skins/blueSky.skin.properties
trunk/framework/impl/src/main/resources/META-INF/skins/classic.skin.properties
trunk/framework/impl/src/main/resources/META-INF/skins/deepMarine.skin.properties
trunk/framework/impl/src/main/resources/META-INF/skins/emeraldTown.skin.properties
trunk/framework/impl/src/main/resources/META-INF/skins/japanCherry.skin.properties
trunk/framework/impl/src/main/resources/META-INF/skins/plain.skin.properties
trunk/framework/impl/src/main/resources/META-INF/skins/ruby.skin.properties
trunk/framework/impl/src/main/resources/META-INF/skins/wine.skin.properties
Log:
some renames in skin parameters
Modified: trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java 2007-08-31 12:51:21 UTC (rev 2651)
+++ trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java 2007-08-31 12:51:47 UTC (rev 2652)
@@ -8,9 +8,7 @@
public class CurrentDateChangeEvent extends FacesEvent {
- /**
- *
- */
+
private static final long serialVersionUID = -8169207286087810907L;
private Date currentDate = null;
private String currentDateString = null;
Modified: trunk/framework/impl/src/main/resources/META-INF/skins/DEFAULT.skin.properties
===================================================================
--- trunk/framework/impl/src/main/resources/META-INF/skins/DEFAULT.skin.properties 2007-08-31 12:51:21 UTC (rev 2651)
+++ trunk/framework/impl/src/main/resources/META-INF/skins/DEFAULT.skin.properties 2007-08-31 12:51:47 UTC (rev 2652)
@@ -52,7 +52,7 @@
#Calendar colors
-calendarwWeekBackgroundColor=#F1EEE9
+calendarWeekBackgroundColor=#F1EEE9
calendarHolidaysBackgroundColor=#FFEBDA
calendarHolidaysTextColor=#FF7800
Modified: trunk/framework/impl/src/main/resources/META-INF/skins/blueSky.skin.properties
===================================================================
--- trunk/framework/impl/src/main/resources/META-INF/skins/blueSky.skin.properties 2007-08-31 12:51:21 UTC (rev 2651)
+++ trunk/framework/impl/src/main/resources/META-INF/skins/blueSky.skin.properties 2007-08-31 12:51:47 UTC (rev 2652)
@@ -53,7 +53,7 @@
#Calendar colors
-calendarwWeekBackgroundColor=#F5F5F5
+calendarWeekBackgroundColor=#F5F5F5
calendarHolidaysBackgroundColor=#FFEBDA
calendarHolidaysTextColor=#FF7800
Modified: trunk/framework/impl/src/main/resources/META-INF/skins/classic.skin.properties
===================================================================
--- trunk/framework/impl/src/main/resources/META-INF/skins/classic.skin.properties 2007-08-31 12:51:21 UTC (rev 2651)
+++ trunk/framework/impl/src/main/resources/META-INF/skins/classic.skin.properties 2007-08-31 12:51:47 UTC (rev 2652)
@@ -52,7 +52,7 @@
#Calendar colors
-calendarwWeekBackgroundColor=#F5F5F5
+calendarWeekBackgroundColor=#F5F5F5
calendarHolidaysBackgroundColor=#FFEBDA
calendarHolidaysTextColor=#FF7800
Modified: trunk/framework/impl/src/main/resources/META-INF/skins/deepMarine.skin.properties
===================================================================
--- trunk/framework/impl/src/main/resources/META-INF/skins/deepMarine.skin.properties 2007-08-31 12:51:21 UTC (rev 2651)
+++ trunk/framework/impl/src/main/resources/META-INF/skins/deepMarine.skin.properties 2007-08-31 12:51:47 UTC (rev 2652)
@@ -51,7 +51,7 @@
tableBorderWidth=1px
#Calendar colors
-calendarwWeekBackgroundColor=#F5F5F5
+calendarWeekBackgroundColor=#F5F5F5
calendarHolidaysBackgroundColor=#FFEBDA
calendarHolidaysTextColor=#FF7800
Modified: trunk/framework/impl/src/main/resources/META-INF/skins/emeraldTown.skin.properties
===================================================================
--- trunk/framework/impl/src/main/resources/META-INF/skins/emeraldTown.skin.properties 2007-08-31 12:51:21 UTC (rev 2651)
+++ trunk/framework/impl/src/main/resources/META-INF/skins/emeraldTown.skin.properties 2007-08-31 12:51:47 UTC (rev 2652)
@@ -51,7 +51,7 @@
tableBorderWidth=1px
#Calendar colors
-calendarwWeekBackgroundColor=#f5f5f5
+calendarWeekBackgroundColor=#f5f5f5
calendarHolidaysBackgroundColor=#FFEBDA
calendarHolidaysTextColor=#FF7800
Modified: trunk/framework/impl/src/main/resources/META-INF/skins/japanCherry.skin.properties
===================================================================
--- trunk/framework/impl/src/main/resources/META-INF/skins/japanCherry.skin.properties 2007-08-31 12:51:21 UTC (rev 2651)
+++ trunk/framework/impl/src/main/resources/META-INF/skins/japanCherry.skin.properties 2007-08-31 12:51:47 UTC (rev 2652)
@@ -52,7 +52,7 @@
#Calendar colors
-calendarwWeekBackgroundColor=#f5f5f5
+calendarWeekBackgroundColor=#f5f5f5
calendarHolidaysBackgroundColor=#FFEBEB
calendarHolidaysTextColor=#980808
Modified: trunk/framework/impl/src/main/resources/META-INF/skins/plain.skin.properties
===================================================================
--- trunk/framework/impl/src/main/resources/META-INF/skins/plain.skin.properties 2007-08-31 12:51:21 UTC (rev 2651)
+++ trunk/framework/impl/src/main/resources/META-INF/skins/plain.skin.properties 2007-08-31 12:51:47 UTC (rev 2652)
@@ -51,7 +51,7 @@
tableBorderWidth=0px
#Calendar colors
-calendarwWeekBackgroundColor=#{null}
+calendarWeekBackgroundColor=#{null}
calendarHolidaysBackgroundColor=#{null}
calendarHolidaysTextColor=#{null}
Modified: trunk/framework/impl/src/main/resources/META-INF/skins/ruby.skin.properties
===================================================================
--- trunk/framework/impl/src/main/resources/META-INF/skins/ruby.skin.properties 2007-08-31 12:51:21 UTC (rev 2651)
+++ trunk/framework/impl/src/main/resources/META-INF/skins/ruby.skin.properties 2007-08-31 12:51:47 UTC (rev 2652)
@@ -52,7 +52,7 @@
#Calendar colors
-calendarwWeekBackgroundColor=#f5f5f5
+calendarWeekBackgroundColor=#f5f5f5
calendarHolidaysBackgroundColor=#FFF1F1
calendarHolidaysTextColor=#980808
Modified: trunk/framework/impl/src/main/resources/META-INF/skins/wine.skin.properties
===================================================================
--- trunk/framework/impl/src/main/resources/META-INF/skins/wine.skin.properties 2007-08-31 12:51:21 UTC (rev 2651)
+++ trunk/framework/impl/src/main/resources/META-INF/skins/wine.skin.properties 2007-08-31 12:51:47 UTC (rev 2652)
@@ -52,7 +52,7 @@
tableBorderWidth=1px
#Calendar colors
-calendarwWeekBackgroundColor=#f5f5f5
+calendarWeekBackgroundColor=#f5f5f5
calendarHolidaysBackgroundColor=#FFF4D8
calendarHolidaysTextColor=#B38919
17 years, 3 months
JBoss Rich Faces SVN: r2651 - in trunk/ui: dataTable/src/test/java/org/richfaces/component and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-08-31 08:51:21 -0400 (Fri, 31 Aug 2007)
New Revision: 2651
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java
trunk/ui/datascroller/src/test/java/org/richfaces/component/DatascrollerComponentTest.java
trunk/ui/paint2D/src/test/java/org/richfaces/component/Paint2DTest.java
trunk/ui/panel/src/test/java/org/richfaces/component/PanelComponentTest.java
trunk/ui/panelbar/src/test/java/org/richfaces/component/PanelBarComponentTest.java
Log:
Changes in xcss connected with new parameters in skins
some changes in JUnit tests
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-08-31 12:18:24 UTC (rev 2650)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-08-31 12:51:21 UTC (rev 2651)
@@ -149,7 +149,7 @@
<u:selector name=".rich-calendar-week">
<u:style name="background" skin="additionalBackgroundColor"/>
<u:style name="border-bottom-color" skin="panelBorderColor"/>
- <u:style name="background-color" skin="calendarwWeekBackgroundColor"/>
+ <u:style name="background-color" skin="calendarWeekBackgroundColor"/>
<u:style name="border-right-color" skin="panelBorderColor"/>
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
@@ -157,8 +157,8 @@
<u:selector name=".rich-calendar-holly">
- <u:style name="background-color" value="calendarHolidaysBackgroundColor"/>
- <u:style name="color" value="calendarHolidaysTextColor"/>
+ <u:style name="background-color" skin="calendarHolidaysBackgroundColor"/>
+ <u:style name="color" skin="calendarHolidaysTextColor"/>
</u:selector>
<u:selector name=".rich-calendar-boundary-dates">
@@ -166,8 +166,8 @@
</u:selector>
<u:selector name=".rich-calendar-today">
- <u:style name="background-color" value="calendarCurrentBackgroundColor"/>
- <u:style name="color" value="calendarCurrentTextColor"/>
+ <u:style name="background-color" skin="calendarCurrentBackgroundColor"/>
+ <u:style name="color" skin="calendarCurrentTextColor"/>
<u:style name="font-weight" value="bold"/>
</u:selector>
@@ -182,7 +182,7 @@
</u:selector>
<u:selector name=".rich-calendar-today.rich-calendar-hover">
- <u:style name="color" value="calendarCurrentBackgroundColor"/>
+ <u:style name="color" skin="calendarCurrentBackgroundColor"/>
</u:selector>
<u:selector name=".rich-calendar-toolfooter">
Modified: trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java
===================================================================
--- trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java 2007-08-31 12:18:24 UTC (rev 2650)
+++ trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java 2007-08-31 12:51:21 UTC (rev 2651)
@@ -25,7 +25,10 @@
import java.util.Date;
import java.util.List;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIForm;
import javax.faces.component.UIOutput;
+import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlOutputText;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
@@ -39,6 +42,7 @@
public class DataGridComponentTest extends AbstractAjax4JsfTestCase {
private UIDataGrid dataGrid;
+ private UIComponent form;
/**
* Create the test case
@@ -58,6 +62,9 @@
public void setUp() throws Exception {
super.setUp();
+ form = new HtmlForm();
+ form.setId("form");
+ facesContext.getViewRoot().getChildren().add(form);
dataGrid = (UIDataGrid) application
.createComponent("org.richfaces.DataGrid");
dataGrid.setId("dataGrid");
@@ -70,7 +77,7 @@
}
dataGrid.setValue(list);
- facesContext.getViewRoot().getChildren().add(dataGrid);
+ form.getChildren().add(dataGrid);
}
/*
@@ -120,16 +127,20 @@
null, null, null);
dataGrid.getFacets().put("footer", footer);
footer.setValue("Footer");
-
+
UIOutput caption = (UIOutput) createComponent(
HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),
null, null, null);
+ caption.setValue("Caption");
+ caption.setId("caption");
dataGrid.getFacets().put("caption", caption);
- caption.setValue("Caption");
+ // System.out.println(dataGrid.getFacets().toString());
+
+
HtmlPage page = renderView();
assertNotNull(page);
- // System.out.println(page.asXml());
+ System.out.println(page.asXml());
HtmlElement table = page.getHtmlElementById(dataGrid
.getClientId(facesContext));
Modified: trunk/ui/datascroller/src/test/java/org/richfaces/component/DatascrollerComponentTest.java
===================================================================
--- trunk/ui/datascroller/src/test/java/org/richfaces/component/DatascrollerComponentTest.java 2007-08-31 12:18:24 UTC (rev 2650)
+++ trunk/ui/datascroller/src/test/java/org/richfaces/component/DatascrollerComponentTest.java 2007-08-31 12:51:21 UTC (rev 2651)
@@ -257,7 +257,7 @@
HtmlPage page = renderView();
assertNotNull(page);
- //System.out.println(page.asXml());
+ System.out.println(page.asXml());
try {
page.getHtmlElementById(scroller.getClientId(facesContext));
assertTrue(false);
Modified: trunk/ui/paint2D/src/test/java/org/richfaces/component/Paint2DTest.java
===================================================================
--- trunk/ui/paint2D/src/test/java/org/richfaces/component/Paint2DTest.java 2007-08-31 12:18:24 UTC (rev 2650)
+++ trunk/ui/paint2D/src/test/java/org/richfaces/component/Paint2DTest.java 2007-08-31 12:51:21 UTC (rev 2651)
@@ -96,7 +96,7 @@
SetUp();
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
HtmlImage htmlP2D = (HtmlImage) page.getHtmlElementById(p2d.getClientId(facesContext));
assertEquals("img", htmlP2D.getNodeName());
Modified: trunk/ui/panel/src/test/java/org/richfaces/component/PanelComponentTest.java
===================================================================
--- trunk/ui/panel/src/test/java/org/richfaces/component/PanelComponentTest.java 2007-08-31 12:18:24 UTC (rev 2650)
+++ trunk/ui/panel/src/test/java/org/richfaces/component/PanelComponentTest.java 2007-08-31 12:51:21 UTC (rev 2651)
@@ -79,7 +79,7 @@
{
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
HtmlElement div = page.getHtmlElementById("panel");
assertNotNull(div);
assertEquals("div", div.getNodeName());
@@ -109,7 +109,7 @@
htmlPanel.getFacets().put("header", text);
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
HtmlElement div = page.getHtmlElementById("panel_header");
assertNotNull(div);
}
@@ -129,7 +129,7 @@
}
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
HtmlElement div = page.getHtmlElementById("panel");
assertNotNull(div);
for (int i = 0; i < attributes.length; i++) {
Modified: trunk/ui/panelbar/src/test/java/org/richfaces/component/PanelBarComponentTest.java
===================================================================
--- trunk/ui/panelbar/src/test/java/org/richfaces/component/PanelBarComponentTest.java 2007-08-31 12:18:24 UTC (rev 2650)
+++ trunk/ui/panelbar/src/test/java/org/richfaces/component/PanelBarComponentTest.java 2007-08-31 12:51:21 UTC (rev 2651)
@@ -216,7 +216,7 @@
*/
public void testRenderScript() throws Exception {
HtmlPage page = renderView();
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
assertNotNull(page);
List scripts = page.getDocumentElement().getHtmlElementsByTagName(
17 years, 3 months
JBoss Rich Faces SVN: r2650 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-08-31 08:18:24 -0400 (Fri, 31 Aug 2007)
New Revision: 2650
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/examples/form.xhtml
Log:
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/examples/form.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/examples/form.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/examples/form.xhtml 2007-08-31 12:18:24 UTC (rev 2650)
@@ -0,0 +1,27 @@
+<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">
+ <rich:panel>
+ <f:facet name="header" value="Car Store"/>
+ <rich:dataGrid value="#{dataTableScrollerBean.allCars}" var="car">
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="#{car.make} #{category.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:panelGrid>
+ </rich:panel>
+ </rich:dataGrid>
+ </rich:panel>
+</ui:composition>
\ No newline at end of file
17 years, 3 months
JBoss Rich Faces SVN: r2649 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: dataGrid and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-08-31 08:17:16 -0400 (Fri, 31 Aug 2007)
New Revision: 2649
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/examples/form.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/usage.xhtml
Log:
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 12:17:16 UTC (rev 2649)
@@ -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
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/messages/usage.xhtml 2007-08-31 12:17:16 UTC (rev 2649)
@@ -0,0 +1,38 @@
+<!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>rich:messages is an extension for a standard h:messages component. In addition to what the
+ standard component provides, rich:messages:
+ <ul>
+ <li>does not require to be wrapped with a4j:outputPanel in order to be rendered during the
+ Ajax requests</li>
+ <li>allows to have one "passed" or a few "failed" markers before the text labels</li>
+ <li>has a predefined css class names for different kinds of messages severities</li>
+ </ul>
+ </p>
+ <p>The message markers is defined with a facets. There are several facets names available
+ to design the marker for different kind of messages severities. The following example
+ shows how the markers might be used to mark the "passed" and "failed" form fields.
+ Fill the form and click "Validate" button to see the entered data passing the
+ defined validation rules.
+ </p>
+ <div class="sample-container" >
+
+ <ui:include src="/richfaces/messages/examples/form.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/messages/examples/form.xhtml"/>
+ </ui:include>
+
+ </div>
+ </ui:define>
+
+ </ui:composition>
+</html>
17 years, 3 months
JBoss Rich Faces SVN: r2648 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-08-31 08:16:29 -0400 (Fri, 31 Aug 2007)
New Revision: 2648
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/usage.xhtml
Log:
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataGrid/usage.xhtml 2007-08-31 12:16:29 UTC (rev 2648)
@@ -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 component takes a list from a model and outputs it the same way as with
+ <h:PanelGrid> for inline data. To define grid properties and styles, use the same
+ definitions as for <h:panelGrid>.<br />
+ The folowing example shows the dataTable component in use:
+ </p>
+
+
+ <div class="sample-container" >
+
+ <ui:include src="/richfaces/dataGrid/examples/report.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/dataGrid/examples/form.xhtml"/>
+ </ui:include>
+
+ </div>
+ </ui:define>
+
+ </ui:composition>
+</html>
17 years, 3 months