Author: ilya_shaikovsky
Date: 2007-08-31 10:57:14 -0400 (Fri, 31 Aug 2007)
New Revision: 2663
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/SalesItem.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/SalesReport.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat.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:
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/SalesItem.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/SalesItem.java
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/SalesItem.java 2007-08-31
14:57:14 UTC (rev 2663)
@@ -0,0 +1,73 @@
+package org.richfaces.datatable;
+
+import java.util.ArrayList;
+
+import javax.faces.model.SelectItem;
+
+public class SalesItem {
+ private int productCode;
+ private double proposedPrice;
+ private double ProposedGrossMargin;
+ private double salesCost;
+ private String reason;
+ private ArrayList reasons;
+ public ArrayList getReasons() {
+ reasons = new ArrayList();
+ if (proposedPrice != 0.0) {
+ if (proposedPrice <= salesCost) {
+ reasons.add(new SelectItem("Nobody Needs it"));
+ reasons.add(new SelectItem("Bad Quality"));
+ reasons.add(new SelectItem("Partly Broken"));
+ } else {
+ reasons.add(new SelectItem("Just Good"));
+ reasons.add(new SelectItem("Everybody Asks for it"));
+ }
+ } else {
+ //reasons.add(new SelectItem("Enter the Price"));
+ }
+ return reasons;
+ }
+ public void setReasons(ArrayList reasons) {
+ this.reasons = reasons;
+ }
+ public String getReason() {
+ return reason;
+ }
+ public void setReason(String reason) {
+ this.reason = reason;
+ }
+
+ public SalesItem(int productCode, double salesCost) {
+ super();
+ this.productCode = productCode;
+ this.salesCost = salesCost;
+ }
+ public int getProductCode() {
+ return productCode;
+ }
+ public void setProductCode(int productCode) {
+ this.productCode = productCode;
+ }
+ public double getProposedGrossMargin() {
+ if (proposedPrice == 0)
+ return 0;
+ else {
+ return (proposedPrice-salesCost)/proposedPrice ;
+ }
+ }
+ public void setProposedGrossMargin(double proposedGrossMargin) {
+ ProposedGrossMargin = proposedGrossMargin;
+ }
+ public double getProposedPrice() {
+ return proposedPrice;
+ }
+ public void setProposedPrice(double proposedPrice) {
+ this.proposedPrice = proposedPrice;
+ }
+ public double getSalesCost() {
+ return salesCost;
+ }
+ public void setSalesCost(double salesCost) {
+ this.salesCost = salesCost;
+ }
+}
Property changes on:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/SalesItem.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/SalesReport.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/SalesReport.java
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/SalesReport.java 2007-08-31
14:57:14 UTC (rev 2663)
@@ -0,0 +1,26 @@
+package org.richfaces.datatable;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class SalesReport {
+ List items = null;
+
+ public List getItems() {
+ if (items == null)
+ initData();
+ return items;
+ }
+
+ public void setItems(List items) {
+ this.items = items;
+ }
+
+ private void initData() {
+ items = new ArrayList();
+ items.add(new SalesItem(1, 20.00));
+ items.add(new SalesItem(2, 10.00));
+ items.add(new SalesItem(3, 20.00));
+ items.add(new SalesItem(4, 20.00));
+ }
+}
Property changes on:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/SalesReport.java
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java 2007-08-31
14:57:14 UTC (rev 2663)
@@ -0,0 +1,22 @@
+package org.richfaces.datatable;
+
+import javax.faces.component.html.HtmlInputText;
+import javax.faces.context.FacesContext;
+
+public class UpdateBean {
+ HtmlInputText priceRef;
+
+ public HtmlInputText getPriceRef() {
+ return priceRef;
+ }
+
+ public void setPriceRef(HtmlInputText priceRef) {
+ this.priceRef = priceRef;
+ }
+
+ public String change(){
+ priceRef.processValidators(FacesContext.getCurrentInstance());
+ priceRef.processUpdates(FacesContext.getCurrentInstance());
+ return null;
+ }
+}
Property changes on:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java
___________________________________________________________________
Name: svn:executable
+ *
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
14:25:22 UTC (rev 2662)
+++
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-08-31
14:57:14 UTC (rev 2663)
@@ -58,7 +58,7 @@
include= ajaxOutput, Include, /images/ico_common.gif,
/images/cn_include2.gif,
RichFacesComponentsLibrary.html#include,
jbossajax4jsf/freezone/docs/tlddoc/a4j/include.html,
jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIInclude.html,
/richfaces/include.jsf
mediaOutput= ajaxOutput, Media Output, /images/ico_common.gif,
/images/cn_MediaOutput.gif,
RichFacesComponentsLibrary.html#mediaOutput,
jbossajax4jsf/freezone/docs/tlddoc/a4j/mediaOutput.html,
jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/resource/UIMediaOutput.html,
/richfaces/mediaOutput.jsf
outputPanel= ajaxOutput, Output Panel, /images/ico_common.gif,
/images/cn_OutputPanel.gif,
RichFacesComponentsLibrary.html#outputPanel,
jbossajax4jsf/freezone/docs/tlddoc/a4j/outputPanel.html,
jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxOutputPanel.html,
/richfaces/outputPanel.jsf
-repeat= richDataIterators, Repeat, /images/ico_common.gif,
/images/cn_Repeat.gif,
RichFacesComponentsLibrary.html#repeat,
jbossajax4jsf/freezone/docs/tlddoc/a4j/repeat.html,
jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/repeat/UIRepeat.html,
/richfaces/comingSoon.jsf
+repeat= richDataIterators, Repeat, /images/ico_common.gif,
/images/cn_Repeat.gif,
RichFacesComponentsLibrary.html#repeat,
jbossajax4jsf/freezone/docs/tlddoc/a4j/repeat.html,
jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/repeat/UIRepeat.html,
/richfaces/repeat.jsf
htmlCommandLink= ajaxMisc, Html Command Link, /images/ico_common.gif,
/images/cn_HtmlCommandLink.gif,
RichFacesComponentsLibrary.html#htmlCommandLink,
jbossajax4jsf/freezone/docs/tlddoc/a4j/htmlCommandLink.html,
jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/renderkit/html/HtmlCommandLinkRenderer.html,
/richfaces/comingSoon.jsf
log= ajaxMisc, Log, /images/ico_common.gif,
/images/cn_Log.gif,
RichFacesComponentsLibrary.html#log,
jbossajax4jsf/freezone/docs/tlddoc/a4j/log.html,
jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxLog.html,
/richfaces/comingSoon.jsf
page= ajaxMisc, Ajax Page, /images/ico_common.gif,
/images/cn_AjaxPage.gif,
RichFacesComponentsLibrary.html#page,
jbossajax4jsf/freezone/docs/tlddoc/a4j/page.html,
jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxRegion.html,
/richfaces/comingSoon.jsf
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-08-31
14:25:22 UTC (rev 2662)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-08-31
14:57:14 UTC (rev 2663)
@@ -1,248 +1,257 @@
-<?xml version="1.0"?>
-<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.0//EN"
-
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
-<faces-config>
- <managed-bean>
- <managed-bean-name>skinBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.common.SkinBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>skin</property-name>
- <property-class>java.lang.String</property-class>
- <value>blueSky</value>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>ddmenu</managed-bean-name>
- <managed-bean-class>org.richfaces.demo.ddmenu.Menu</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>calendarBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.calendar.CalendarBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>profile</managed-bean-name>
- <managed-bean-class>org.richfaces.demo.wizard.Profile</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>userBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.ajaxsupport.UserBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>name</property-name>
- <property-class>java.lang.String</property-class>
- <value/>
- </managed-property>
- <managed-property>
- <property-name>screenWidth</property-name>
- <property-class>java.lang.Integer</property-class>
- <null-value/>
- </managed-property>
- <managed-property>
- <property-name>screenHeight</property-name>
- <property-class>java.lang.Integer</property-class>
- <null-value/>
- </managed-property>
- <managed-property>
- <property-name>job</property-name>
- <property-class>java.lang.String</property-class>
- <null-value/>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>dfsBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.datafilterslider.DemoSliderBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>demoInventoryList</property-name>
- <value>#{inventoryList}</value>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>dataTableScrollerBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.datatablescroller.DataTableScrollerBean</managed-bean-class>
- <managed-bean-scope>application</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>toggleBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.togglePanel.ToggleBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>inventoryList</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.datafilterslider.DemoInventoryList</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>suggestionBox</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.sb.SuggestionBox</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>gmBean</managed-bean-name>
- <managed-bean-class>org.richfaces.demo.gmap.Bean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>zoom</property-name>
- <property-class>int</property-class>
- <value>17</value>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>environment</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.common.Environment</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>params</property-name>
- <property-class>java.util.Map</property-class>
- <map-entries>
- <map-entry>
- <key>devguide-location</key>
-
<
value>http://www.jboss.org/projects/jbossrichfaces/freezone/docs/devgu...
- </map-entry>
- <map-entry>
- <key>tld-doc-location</key>
-
<
value>http://www.jboss.org/projects/jbossrichfaces/freezone/docs/tlddo...
- </map-entry>
- <map-entry>
- <key>java-doc-location</key>
-
<
value>http://www.jboss.org/projects/jbossrichfaces/freezone/docs/apido...
- </map-entry>
- </map-entries>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>insValueBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.inputnumberslider.ValueBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>componentNavigator</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.common.ComponentNavigator</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>report</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.datatable.Report</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>tbBean</managed-bean-name>
- <managed-bean-class>org.richfaces.demo.toolBar.TbBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>paintBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.paint2d.PaintBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>paintData</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.paint2d.PaintData</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- <managed-property>
- <property-name>color</property-name>
- <property-class>int</property-class>
- <value>1000</value>
- </managed-property>
- <managed-property>
- <property-name>scale</property-name>
- <property-class>float</property-class>
- <value>2</value>
- </managed-property>
- <managed-property>
- <property-name>text</property-name>
- <property-class>java.lang.String</property-class>
- <value>Paint 2D</value>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>library</managed-bean-name>
- <managed-bean-class>org.richfaces.demo.tree.Library</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>dndBean</managed-bean-name>
- <managed-bean-class>org.richfaces.demo.dnd.DndBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>eventBean</managed-bean-name>
- <managed-bean-class>org.richfaces.demo.dnd.EventBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- <managed-property>
- <property-name>dndBean</property-name>
- <property-class>org.richfaces.demo.dnd.DndBean</property-class>
- <value>#{dndBean}</value>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>toolTipData</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.tooltip.ToolTipData</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>rsBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.ajaxSamples.rsBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>rsBean2</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.ajaxSamples.rsBean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>auctionDataModel</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.extendeddatamodel.AuctionDataModel</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- <managed-property>
- <property-name>dataProvider</property-name>
-
<property-class>org.richfaces.demo.extendeddatamodel.AuctionDataProvider</property-class>
- <value>#{auctionDataProvider}</value>
- </managed-property>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>mediaBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.media.MediaBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>mediaData</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.media.MediaData</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>auctionDataProvider</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.extendeddatamodel.AuctionDataProvider</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <navigation-rule>
- <from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id>
- <navigation-case>
- <from-outcome>next</from-outcome>
- <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
- </navigation-case>
- </navigation-rule>
- <navigation-rule>
- <from-view-id>/richfaces/include/examples/wstep2.xhtml</from-view-id>
- <navigation-case>
- <from-outcome>previous</from-outcome>
- <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id>
- </navigation-case>
- <navigation-case>
- <from-outcome>next</from-outcome>
- <to-view-id>/richfaces/include/examples/finalStep.xhtml</to-view-id>
- </navigation-case>
- </navigation-rule>
- <navigation-rule>
- <from-view-id>/richfaces/include/examples/finalStep.xhtml</from-view-id>
- <navigation-case>
- <from-outcome>previous</from-outcome>
- <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
- </navigation-case>
- </navigation-rule>
-
-</faces-config>
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.0//EN"
+
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>skinBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.common.SkinBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>skin</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>blueSky</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>ddmenu</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.ddmenu.Menu</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>calendarBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.calendar.CalendarBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>profile</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.wizard.Profile</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>userBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.ajaxsupport.UserBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>name</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>screenWidth</property-name>
+ <property-class>java.lang.Integer</property-class>
+ <null-value/>
+ </managed-property>
+ <managed-property>
+ <property-name>screenHeight</property-name>
+ <property-class>java.lang.Integer</property-class>
+ <null-value/>
+ </managed-property>
+ <managed-property>
+ <property-name>job</property-name>
+ <property-class>java.lang.String</property-class>
+ <null-value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>dfsBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.datafilterslider.DemoSliderBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>demoInventoryList</property-name>
+ <value>#{inventoryList}</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>dataTableScrollerBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.datatablescroller.DataTableScrollerBean</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>toggleBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.togglePanel.ToggleBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>inventoryList</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.datafilterslider.DemoInventoryList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>suggestionBox</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.sb.SuggestionBox</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>gmBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.gmap.Bean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>zoom</property-name>
+ <property-class>int</property-class>
+ <value>17</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>environment</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.common.Environment</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>params</property-name>
+ <property-class>java.util.Map</property-class>
+ <map-entries>
+ <map-entry>
+ <key>devguide-location</key>
+
<
value>http://www.jboss.org/projects/jbossrichfaces/freezone/docs/devgu...
+ </map-entry>
+ <map-entry>
+ <key>tld-doc-location</key>
+
<
value>http://www.jboss.org/projects/jbossrichfaces/freezone/docs/tlddo...
+ </map-entry>
+ <map-entry>
+ <key>java-doc-location</key>
+
<
value>http://www.jboss.org/projects/jbossrichfaces/freezone/docs/apido...
+ </map-entry>
+ </map-entries>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>insValueBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.inputnumberslider.ValueBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>componentNavigator</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.common.ComponentNavigator</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>report</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.datatable.Report</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>tbBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.toolBar.TbBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>paintBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.paint2d.PaintBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>paintData</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.paint2d.PaintData</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>color</property-name>
+ <property-class>int</property-class>
+ <value>1000</value>
+ </managed-property>
+ <managed-property>
+ <property-name>scale</property-name>
+ <property-class>float</property-class>
+ <value>2</value>
+ </managed-property>
+ <managed-property>
+ <property-name>text</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>Paint 2D</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>library</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.tree.Library</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>dndBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.dnd.DndBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>eventBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.dnd.EventBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>dndBean</property-name>
+ <property-class>org.richfaces.demo.dnd.DndBean</property-class>
+ <value>#{dndBean}</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>toolTipData</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.tooltip.ToolTipData</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>rsBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.ajaxSamples.rsBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>rsBean2</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.ajaxSamples.rsBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>auctionDataModel</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.extendeddatamodel.AuctionDataModel</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>dataProvider</property-name>
+
<property-class>org.richfaces.demo.extendeddatamodel.AuctionDataProvider</property-class>
+ <value>#{auctionDataProvider}</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>mediaBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.media.MediaBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>mediaData</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.media.MediaData</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>auctionDataProvider</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.extendeddatamodel.AuctionDataProvider</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>salesReport</managed-bean-name>
+
<managed-bean-class>org.richfaces.datatable.SalesReport</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>updateBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.datatable.UpdateBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <navigation-rule>
+ <from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+ <from-view-id>/richfaces/include/examples/wstep2.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/richfaces/include/examples/finalStep.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+ <from-view-id>/richfaces/include/examples/finalStep.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+</faces-config>
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:25:22 UTC (rev 2662)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/examples/repeater.xhtml 2007-08-31
14:57:14 UTC (rev 2663)
@@ -1,45 +1,55 @@
<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">
+
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>
+ <h:form>
+ <a4j:outputPanel id="table">
+ <table border="1">
+ <tbody>
+ <tr>
+ <th><h:outputText value="Product Code" /></th>
+ <th><h:outputText value="Proposed Price" /></th>
+ <th><h:outputText value="Sales Cost" /></th>
+ <th style="width: 150px"><h:outputText value="Reason"
/></th>
+ <th><h:outputText value="Proposed Gross Margin" /></th>
+ </tr>
+ <a4j:repeat value="#{salesReport.items}" var="item">
+ <tr>
+ <td align="center">
+ <h:outputText value="#{item.productCode}" />
+ </td>
+ <td>
+ <h:inputText binding="#{updateBean.priceRef}"
+ immediate="false" value="#{item.proposedPrice}"
size="7">
+ <a4j:support immediate="true"
action="#{updateBean.change}"
+ event="onchange" reRender="margin,reason,table" />
+ </h:inputText>
+ </td>
+ <td>
+ <h:outputText value="#{item.salesCost}" />
+ </td>
+ <td>
+ <h:selectOneMenu id="reason" required="true"
+ value="#{item.reason}">
+ <f:selectItems value="#{item.reasons}" />
+ </h:selectOneMenu>
+ </td>
+ <td>
+ <h:outputText id="margin"
+ value="#{item.proposedGrossMargin}">
+ <f:convertNumber pattern="$###0.000" />
+ </h:outputText>
+ </td>
+ </tr>
+ </a4j:repeat>
+ </tbody>
+ </table>
+ </a4j:outputPanel>
+ <rich:messages />
+ </h:form>
-
-
- </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:25:22 UTC (rev 2662)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat/usage.xhtml 2007-08-31
14:57:14 UTC (rev 2663)
@@ -21,9 +21,9 @@
<div class="sample-container" >
- <ui:include src="/richfaces/dataTable/examples/repeater.xhtml"/>
+ <ui:include src="/richfaces/repeat/examples/repeater.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath"
value="/richfaces/dataTable/examples/repeater.xhtml"/>
+ <ui:param name="sourcepath"
value="/richfaces/repeat/examples/repeater.xhtml"/>
</ui:include>
</div>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat.xhtml 2007-08-31
14:25:22 UTC (rev 2662)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/repeat.xhtml 2007-08-31
14:57:14 UTC (rev 2663)
@@ -5,14 +5,14 @@
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="title">RichFaces - Open Source Rich JSF Components -
Repeat</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:param name="path"
value="richfaces/repeat/examples/repeater.xhtml"/>
</ui:include>
</rich:tabPanel>
</ui:define>