Author: nbelaevski
Date: 2008-01-10 12:50:30 -0500 (Thu, 10 Jan 2008)
New Revision: 5275
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java
Log:
http://jira.jboss.com/jira/browse/RF-1809
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java 2008-01-10
17:28:49 UTC (rev 5274)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatable/UpdateBean.java 2008-01-10
17:50:30 UTC (rev 5275)
@@ -1,10 +1,12 @@
package org.richfaces.datatable;
+import java.util.HashSet;
+import java.util.Set;
+
import javax.faces.component.html.HtmlInputText;
import javax.faces.context.FacesContext;
+
import org.ajax4jsf.component.UIRepeat;
-import java.util.HashSet;
-import java.util.Set;
public class UpdateBean {
@@ -31,11 +33,11 @@
}
public UIRepeat getRepeater() {
- return repeater;
+ return null;
}
public HtmlInputText getPriceRef() {
- return priceRef;
+ return null;
}
public void setPriceRef(HtmlInputText priceRef) {
@@ -45,7 +47,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());