incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r161370 - incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/TreePortlet.java
Date Fri, 15 Apr 2005 00:25:58 GMT
Author: taylor
Date: Thu Apr 14 17:25:57 2005
New Revision: 161370

URL: http://svn.apache.org/viewcvs?view=rev&rev=161370
Log:
get TreePortlet working inside an (i)frame

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?view=diff&r1=161369&r2=161370
==============================================================================
--- 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 Apr 14 17:25:57 2005
@@ -80,6 +80,13 @@
             //request.getPortletSession().removeAttribute("tree_anchor");
         }
         
+        Object refresh = request.getPortletSession().getAttribute("refresh_page");
+        if(refresh != null)
+        {
+            request.getPortletSession().removeAttribute("refresh_page");
+            request.setAttribute("refresh_page", refresh);
+        }
+        
        
         request.setAttribute("j2_tree", control);
 
@@ -90,12 +97,12 @@
     throws PortletException,
           IOException
     {
-    	
-    	Object refresh = actionRequest.getParameter("refresh_page");
-        if(refresh != null)
-        {        	
-        	actionRequest.getPortletSession().removeAttribute("j2_tree");
-        	return;
+   	
+        Object reset = actionRequest.getParameter("reset_page");
+        if(reset != null)
+        {
+            //attempt to fix safari bug.  if processAction 
+            return;
         }
         
         TreeControl control = (TreeControl) actionRequest.getPortletSession().getAttribute("j2_tree");



Mime
View raw message