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-2/portals-bridges/common/src/java/org/apache/portals/bridges/common GenericServletPortlet.java
Date Mon, 15 Nov 2004 05:58:32 GMT
taylor      2004/11/14 21:58:32

  Modified:    portals-bridges/common/src/java/org/apache/portals/bridges/common
                        GenericServletPortlet.java
  Log:
  moved up prefs support in the class hiearchy
  
  Revision  Changes    Path
  1.4       +16 -1     jakarta-jetspeed-2/portals-bridges/common/src/java/org/apache/portals/bridges/common/GenericServletPortlet.java
  
  Index: GenericServletPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portals-bridges/common/src/java/org/apache/portals/bridges/common/GenericServletPortlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- GenericServletPortlet.java	29 Oct 2004 01:25:14 -0000	1.3
  +++ GenericServletPortlet.java	15 Nov 2004 05:58:32 -0000	1.4
  @@ -23,11 +23,14 @@
   import javax.portlet.PortletConfig;
   import javax.portlet.PortletContext;
   import javax.portlet.PortletException;
  +import javax.portlet.PortletMode;
   import javax.portlet.PortletPreferences;
   import javax.portlet.PortletRequestDispatcher;
   import javax.portlet.RenderRequest;
   import javax.portlet.RenderResponse;
   
  +import org.apache.portals.bridges.util.PreferencesHelper;
  +
   /**
    * ServletPortlet will call a server, as defined by a xxxPage preference, for
    * the Action, Custom, Edit, Help, and View operations.  This allow the use of
  @@ -443,4 +446,16 @@
           this.defaultActionPage = defaultActionPage;
       }
   
  +    /**
  +     * Save the prefs
  +     */
  +    public void processPreferencesAction(ActionRequest request, ActionResponse actionResponse)
  +    throws PortletException, IOException
  +    {
  +        PortletPreferences prefs = request.getPreferences();
  +        PreferencesHelper.requestParamsToPreferences(request);
  +        prefs.store();
  +        actionResponse.setPortletMode(PortletMode.VIEW);
  +    }
  +    
   }
  
  
  

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