[pal-cvs 3404] [1138] not changed portlet mode.

svnno****@sourc***** svnno****@sourc*****
2008年 9月 8日 (月) 07:45:32 JST


Revision: 1138
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=1138
Author:   shinsuke
Date:     2008-09-08 07:45:32 +0900 (Mon, 08 Sep 2008)

Log Message:
-----------
not changed portlet mode.

Modified Paths:
--------------
    pal-wcm/tags/pal-wcm-1.0/src/main/java/jp/sf/pal/wcm/portlet/WcmViewerPortlet.java


-------------- next part --------------
Modified: pal-wcm/tags/pal-wcm-1.0/src/main/java/jp/sf/pal/wcm/portlet/WcmViewerPortlet.java
===================================================================
--- pal-wcm/tags/pal-wcm-1.0/src/main/java/jp/sf/pal/wcm/portlet/WcmViewerPortlet.java	2008-09-07 22:45:23 UTC (rev 1137)
+++ pal-wcm/tags/pal-wcm-1.0/src/main/java/jp/sf/pal/wcm/portlet/WcmViewerPortlet.java	2008-09-07 22:45:32 UTC (rev 1138)
@@ -27,7 +27,6 @@
 import javax.portlet.GenericPortlet;
 import javax.portlet.PortletConfig;
 import javax.portlet.PortletException;
-import javax.portlet.PortletMode;
 import javax.portlet.PortletRequest;
 import javax.portlet.PortletRequestDispatcher;
 import javax.portlet.PortletSession;
@@ -83,10 +82,10 @@
 
     public void processAction(ActionRequest request, ActionResponse response)
             throws PortletException, IOException {
-        PortletMode mode = request.getPortletMode();
-        if (PortletMode.EDIT.equals(mode)) {
-            response.setPortletMode(PortletMode.VIEW);
-        }
+//        PortletMode mode = request.getPortletMode();
+//        if (PortletMode.EDIT.equals(mode)) {
+//            response.setPortletMode(PortletMode.VIEW);
+//        }
     }
 
     protected void doEdit(RenderRequest request, RenderResponse response)


pal-cvs メーリングリストの案内