incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r168652 - /incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/DocumentPortlet.java
Date Fri, 06 May 2005 21:04:36 GMT
Author: taylor
Date: Fri May  6 14:04:35 2005
New Revision: 168652

URL: http://svn.apache.org/viewcvs?rev=168652&view=rev
Log:
make scrollable div optional

Modified:
    incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/DocumentPortlet.java

Modified: incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/DocumentPortlet.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/DocumentPortlet.java?rev=168652&r1=168651&r2=168652&view=diff
==============================================================================
--- incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/DocumentPortlet.java
(original)
+++ incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/DocumentPortlet.java
Fri May  6 14:04:35 2005
@@ -60,6 +60,7 @@
     
     protected ContentModelService cms;
     protected String stylesheet;
+    protected boolean useScrollableDiv = true;
     
     public void doView(RenderRequest request, RenderResponse response) throws PortletException,
IOException
     {
@@ -260,6 +261,12 @@
             throw new PortletException("Failed to load CMS service");
         }
         stylesheet = config.getInitParameter("stylesheet");
+        String div = config.getInitParameter("scrollableDiv");
+        if (div != null)
+        {
+            if (div.equalsIgnoreCase("false"))
+                useScrollableDiv = false;
+        }
     }
         
 }



Mime
View raw message