Author: SergeySmirnov
Date: 2007-08-01 20:01:04 -0400 (Wed, 01 Aug 2007)
New Revision: 1996
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxSamples/
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxSamples/rsBean.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/bundle1.properties
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/bundle2.properties
Modified:
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
Log:
KeepAlive
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxSamples/rsBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxSamples/rsBean.java
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxSamples/rsBean.java 2007-08-02
00:01:04 UTC (rev 1996)
@@ -0,0 +1,31 @@
+package org.richfaces.demo.ajaxSamples;
+
+public class rsBean {
+ private Integer addent1;
+ private Integer addent2;
+ private Integer sum;
+
+ public Integer getSum() {
+ return sum;
+ }
+ public void setSum(Integer sum) {
+ this.sum = sum;
+ }
+ public Integer getAddent1() {
+ return addent1;
+ }
+ public void setAddent1(Integer addent1) {
+ this.addent1 = addent1;
+ }
+ public Integer getAddent2() {
+ return addent2;
+ }
+ public void setAddent2(Integer addent2) {
+ this.addent2 = addent2;
+ }
+ public String doSum() {
+ sum = addent1 + addent2;
+ return null;
+ }
+
+}
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/bundle1.properties
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/bundle1.properties
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/bundle1.properties 2007-08-02
00:01:04 UTC (rev 1996)
@@ -0,0 +1 @@
+text1=This bundle message is loading with f\:loadBundle. It will disappear during the
Ajax re-rendering
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/bundle2.properties
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/bundle2.properties
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/bundle2.properties 2007-08-02
00:01:04 UTC (rev 1996)
@@ -0,0 +1 @@
+text2=This bundle message is loading with a4j\:loadBundle.
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-01
23:59:53 UTC (rev 1995)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-08-02
00:01:04 UTC (rev 1996)
@@ -174,4 +174,14 @@
<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>
</faces-config>
Show replies by date