portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets RegistryBrowseAction.java
Date Thu, 11 Mar 2004 00:15:42 GMT
jford       2004/03/10 16:15:42

  Modified:    src/java/org/apache/jetspeed/modules/actions/portlets
                        RegistryBrowseAction.java
  Log:
  Fixed bug in registry browsing
  
  Revision  Changes    Path
  1.8       +3 -4      jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/RegistryBrowseAction.java
  
  Index: RegistryBrowseAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/RegistryBrowseAction.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- RegistryBrowseAction.java	23 Feb 2004 02:56:58 -0000	1.7
  +++ RegistryBrowseAction.java	11 Mar 2004 00:15:42 -0000	1.8
  @@ -77,8 +77,7 @@
   
           int size = Integer.parseInt(pageSize);
   
  -        int next = start+size+1;
  -        int prev = start-size-1;
  +        int prev = start-size;
           
           if(prev < 0)
           {
  @@ -149,9 +148,9 @@
           {
               context.put("prev",String.valueOf(prev));
           }
  -        if (next < filteredEntries.size())
  +        if (end < filteredEntries.size())
           {
  -            context.put("next",String.valueOf(next));
  +            context.put("next",String.valueOf(end));
           }
       }
       
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message