incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r220163 - /incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/TreePortlet.java
Date Thu, 21 Jul 2005 18:32:35 GMT
Author: taylor
Date: Thu Jul 21 11:32:33 2005
New Revision: 220163

URL: http://svn.apache.org/viewcvs?rev=220163&view=rev
Log:
fix refresh action

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

Modified: incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/TreePortlet.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/TreePortlet.java?rev=220163&r1=220162&r2=220163&view=diff
==============================================================================
--- incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/TreePortlet.java
(original)
+++ incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/TreePortlet.java
Thu Jul 21 11:32:33 2005
@@ -67,7 +67,8 @@
         response.setContentType("text/html");
 
         TreeControl control = (TreeControl) request.getPortletSession().getAttribute("j2_tree");
-        if (control == null)
+        String refreshNow = request.getParameter("refreshNow");        
+        if (control == null || refreshNow != null)
         {
             control = buildCmsTree(this.getInitParameter("scope"), getRootLabel(), "DTB_DOMAIN");
             request.getPortletSession().setAttribute("j2_tree", control);
@@ -97,7 +98,11 @@
     throws PortletException,
           IOException
     {
-   	
+        String refresh = actionRequest.getParameter("refresh_page");
+        if (refresh != null)
+        {
+            actionResponse.setRenderParameter("refreshNow", "true");
+        }
         Object reset = actionRequest.getParameter("reset_page");
         if(reset != null)
         {



Mime
View raw message