Author: abelevich
Date: 2009-03-23 12:41:48 -0400 (Mon, 23 Mar 2009)
New Revision: 13115
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DataScrollerBean.java
Log:
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DataScrollerBean.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DataScrollerBean.java 2009-03-23
16:41:28 UTC (rev 13114)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DataScrollerBean.java 2009-03-23
16:41:48 UTC (rev 13115)
@@ -25,6 +25,7 @@
import java.util.List;
import javax.faces.event.ActionEvent;
+import javax.faces.event.ValueChangeEvent;
import org.richfaces.component.UIDatascroller;
@@ -53,6 +54,18 @@
private boolean renderIfSinglePage = true;
+ private String content1 = "content1";
+
+ private String content2 = "content2";
+
+ private boolean limitToList = false;
+
+ private boolean ajaxSingle = true;
+
+ private String listener1;
+
+ private String listener2;
+
private UIDatascroller scroller;
public DataScrollerBean() {
@@ -70,7 +83,7 @@
}
public String pageVars() {
- reRender = "activePage, pagesCount";
+ reRender = "activePage, pagesCount,limit_input, limitControl";
return null;
}
@@ -91,6 +104,12 @@
data = null;
onpagechange = "EventQueue.fire('onpagechange')";
renderIfSinglePage = true;
+ limitToList = false;
+ ajaxSingle = true;
+ content1 = "content1";
+ content2 = "content2";
+ listener1 = "reset";
+ listener2 = "reset";
}
public void apply(ActionEvent event) {
@@ -244,5 +263,53 @@
this.scroller = scroller;
}
+ public boolean isLimitToList() {
+ return limitToList;
+ }
+
+ public void setLimitToList(boolean limitToList) {
+ this.limitToList = limitToList;
+ }
+
+ public String getContent1() {
+ return content1;
+ }
+
+ public void setContent1(String content1) {
+ this.content1 = content1;
+ }
+
+ public String getContent2() {
+ return content2;
+ }
+
+ public void setContent2(String content2) {
+ this.content2 = content2;
+ }
+ public void valueChangeContent1(ValueChangeEvent event) {
+ listener1 = "invoked";
+ }
+
+ public void valueChangeContent2(ValueChangeEvent event) {
+ listener2 = "invoked";
+ }
+
+
+ public String getContentListener1() {
+ return listener1;
+ }
+
+ public String getContentListener2() {
+ return listener2;
+ }
+
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
+
}