portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets RegistryBrowseAction.java
Date Tue, 09 Oct 2001 04:36:40 GMT
taylor      01/10/08 21:36:40

  Modified:    src/java/org/apache/jetspeed/modules/actions/portlets
                        RegistryBrowseAction.java
  Log:
  patch to PortletBrowser from Ignacio Ortega
  
  Revision  Changes    Path
  1.3       +3 -3      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RegistryBrowseAction.java	2001/07/29 13:41:52	1.2
  +++ RegistryBrowseAction.java	2001/10/09 04:36:40	1.3
  @@ -94,8 +94,8 @@
   
           int size = Integer.parseInt(pageSize);
   
  -        int next = start+size;
  -        int prev = start-size;
  +        int next = start+size+1;
  +        int prev = start-size-1;
                   
           String regName = portlet.getPortletConfig()
                                   .getInitParameter("registry",Registry.PORTLET);
  @@ -126,7 +126,7 @@
           {
               context.put("prev",String.valueOf(prev));
           }
  -        if (    (count == next-1) 
  +        if (    (count == next) 
                && ( count < Registry.get(regName).getEntryCount() ) )
           {
               context.put("next",String.valueOf(next));
  
  
  

---------------------------------------------------------------------
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