Update of /cvsroot/displaytag/display09/src/org/displaytag/pagination
In directory sc8-pr-cvs1:/tmp/cvs-serv13956/src/org/displaytag/pagination

Modified Files:
        SmartListHelper.java 
Log Message:
fixed pagination bug (the "11 results" bug)

Index: SmartListHelper.java
===================================================================
RCS file: 
/cvsroot/displaytag/display09/src/org/displaytag/pagination/SmartListHelper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SmartListHelper.java        21 Jun 2003 12:34:50 -0000      1.1
--- SmartListHelper.java        15 Jul 2003 21:47:12 -0000      1.2
***************
*** 279,283 ****
                        return MessageFormat.format(mProp.getPagingFoundOneItem(), 
lObjs);
                }
!               else if (getFirstIndexForCurrentPage() == getLastIndexForCurrentPage())
                {
                        Object[] lObjs= { new Integer(mFullListSize), 
mProp.getPagingItemsName(), mProp.getPagingItemsName()};
--- 279,283 ----
                        return MessageFormat.format(mProp.getPagingFoundOneItem(), 
lObjs);
                }
!               else if (computedPageCount() == 1)
                {
                        Object[] lObjs= { new Integer(mFullListSize), 
mProp.getPagingItemsName(), mProp.getPagingItemsName()};




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to