You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by to...@apache.org on 2004/12/18 17:31:21 UTC
cvs commit: incubator-myfaces/src/components/org/apache/myfaces/custom/datascroller HtmlDataScrollerRenderer.java
tomsp 2004/12/18 08:31:21
Modified: src/components/org/apache/myfaces/custom/datascroller
HtmlDataScrollerRenderer.java
Log:
fixed issue MYFACES-1
Revision Changes Path
1.17 +6 -3 incubator-myfaces/src/components/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java
Index: HtmlDataScrollerRenderer.java
===================================================================
RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- HtmlDataScrollerRenderer.java 13 Oct 2004 11:50:57 -0000 1.16
+++ HtmlDataScrollerRenderer.java 18 Dec 2004 16:31:21 -0000 1.17
@@ -37,6 +37,9 @@
* @author Thomas Spiegl (latest modification by $Author$)
* @version $Revision$ $Date$
* $Log$
+ * Revision 1.17 2004/12/18 16:31:21 tomsp
+ * fixed issue MYFACES-1
+ *
* Revision 1.16 2004/10/13 11:50:57 matze
* renamed packages to org.apache
*
@@ -107,7 +110,7 @@
int next = uiData.getFirst() + uiData.getRows() * fastStep;
int rowcount = uiData.getRowCount();
if (next > rowcount)
- next = rowcount - (rowcount % uiData.getRows());
+ next = (rowcount - 1) - ((rowcount - 1) % uiData.getRows());
uiData.setFirst(next);
}
else if (param.equals(FACET_FAST_REWIND))