You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mk...@apache.org on 2007/03/29 19:44:22 UTC

svn commit: r523779 - in /myfaces/tomahawk/trunk/examples/simple/src/main: java/org/apache/myfaces/examples/listexample/DataScrollerList.java webapp/dataScroller.jsp

Author: mkienenb
Date: Thu Mar 29 10:44:21 2007
New Revision: 523779

URL: http://svn.apache.org/viewvc?view=rev&rev=523779
Log:
Improvement for testing TOMAHAWK-538 -- dataScoller displays wrong page after increasing row count on dataTable resulting in page count which is smaller than last displayed page.
Allow end user to specify how many rows are displayed by the datascroller.

Modified:
    myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/listexample/DataScrollerList.java
    myfaces/tomahawk/trunk/examples/simple/src/main/webapp/dataScroller.jsp

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/listexample/DataScrollerList.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/listexample/DataScrollerList.java?view=diff&rev=523779&r1=523778&r2=523779
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/listexample/DataScrollerList.java (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/listexample/DataScrollerList.java Thu Mar 29 10:44:21 2007
@@ -33,6 +33,16 @@
  */
 public class DataScrollerList
 {
+	private Long rowCount = new Long(10);
+
+	public Long getRowCount() {
+		return rowCount;
+	}
+
+	public void setRowCount(Long rowCount) {
+		this.rowCount = rowCount;
+	}
+	
     private List _list = new ArrayList();
 
     public DataScrollerList()

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/dataScroller.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/dataScroller.jsp?view=diff&rev=523779&r1=523778&r2=523779
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/dataScroller.jsp (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/dataScroller.jsp Thu Mar 29 10:44:21 2007
@@ -35,6 +35,9 @@
 
     <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
 
+    <h:outputText value="Rows to show"/>
+    <h:inputText value="#{scrollerList.rowCount}" />
+
     <h:panelGroup id="body">
     
         <t:dataTable id="data"