[richfaces-svn-commits] JBoss Rich Faces SVN: r5529 - in branches/3.1.x/samples/richfaces-demo/src/main: webapp/WEB-INF and 1 other directory.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Jan 22 07:17:56 EST 2008
Author: ilya_shaikovsky
Date: 2008-01-22 07:17:56 -0500 (Tue, 22 Jan 2008)
New Revision: 5529
Modified:
branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java
branches/3.1.x/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
Log:
http://jira.jboss.com/jira/browse/RF-1809
Modified: branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java 2008-01-22 11:05:20 UTC (rev 5528)
+++ branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java 2008-01-22 12:17:56 UTC (rev 5529)
@@ -9,7 +9,7 @@
public class UpdateBean {
HtmlInputText priceRef;
- private UIRepeat repeater;
+ private UIRepeat repeater=null;
private Set<Integer> keys = null;
/**
@@ -31,11 +31,11 @@
}
public UIRepeat getRepeater() {
- return repeater;
+ return null;
}
public HtmlInputText getPriceRef() {
- return priceRef;
+ return null;
}
public void setPriceRef(HtmlInputText priceRef) {
@@ -45,7 +45,7 @@
public String change(){
HashSet keys = new HashSet<Integer>();
- int rowKey = getRepeater().getRowIndex();
+ int rowKey = repeater.getRowIndex();
keys.add(rowKey);
setKeys(keys);
priceRef.processValidators(FacesContext.getCurrentInstance());
Modified: branches/3.1.x/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-01-22 11:05:20 UTC (rev 5528)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-01-22 12:17:56 UTC (rev 5529)
@@ -251,7 +251,7 @@
<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-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>panelMenu</managed-bean-name>
More information about the richfaces-svn-commits
mailing list