portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sean Taylor <d.tay...@onehippo.com>
Subject Re: edit_defaults
Date Thu, 08 Apr 2010 04:17:11 GMT
A minor complication to any portlets using the Velocity Bridge with
the edit_defaults auto switch, seems we need to patch the bridge in
GenericVelocityPortlet.java
And require another release of this bridge if we want to properly
support edit_defaults auto switch .....


### Eclipse Workspace Patch 1.0
#P velocity-bridge
Index: src/java/org/apache/portals/bridges/velocity/GenericVelocityPortlet.java
===================================================================
--- src/java/org/apache/portals/bridges/velocity/GenericVelocityPortlet.java	(revision
931771)
+++ src/java/org/apache/portals/bridges/velocity/GenericVelocityPortlet.java	(working
copy)
@@ -129,7 +129,8 @@
      */
     public void doEdit(RenderRequest request, RenderResponse
response) throws PortletException, IOException
     {
-        super.doEdit(request, response);
+        createPortletVelocityContext(request, response);
+    	super.doEdit(request, response);
     }

     /**
@@ -142,7 +143,8 @@
      */
     public void doHelp(RenderRequest request, RenderResponse
response) throws PortletException, IOException
     {
-        super.doHelp(request, response);
+        createPortletVelocityContext(request, response);
+    	super.doHelp(request, response);
     }

     /**


On Wed, Apr 7, 2010 at 6:15 PM, David Sean Taylor <d.taylor@onehippo.com> wrote:
> I would like to propose a simple change for the 2.2.1 release, making
> this setting true by default in jetspeed.properties:
>
> # switch edit_defaults mode to edit mode automatically for portlets
> not supporting edit_defaults mode
> supported.portletmode.autoswitch.edit_defaults=true
>
> This will allow me to configure portlets for *all* users more easily,
> not just for the current user, which seems to be what i need as
> administrator 9 times out of 10
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message