From portal-commits at lists.jboss.org Wed Sep 9 09:03:06 2009
Content-Type: multipart/mixed; boundary="===============4884320529631131595=="
MIME-Version: 1.0
From: portal-commits at lists.jboss.org
To: portal-commits at lists.jboss.org
Subject: [portal-commits] JBoss Portal SVN: r13802 - in
branches/Enterprise_Portal_Platform_4_3/widget/src:
main/org/jboss/portal/widget/google and 3 other directories.
Date: Wed, 09 Sep 2009 09:03:05 -0400
Message-ID: <200909091303.n89D35Ws023246@svn01.web.mwc.hst.phx2.redhat.com>
--===============4884320529631131595==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: thomas.heute(a)jboss.com
Date: 2009-09-09 09:03:05 -0400 (Wed, 09 Sep 2009)
New Revision: 13802
Modified:
branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss/portal=
/widget/AbstractWidgetPortlet.java
branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss/portal=
/widget/google/GGWidgetPortlet.java
branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss/portal=
/widget/netvibes/NetvibesWidgetPortlet.java
branches/Enterprise_Portal_Platform_4_3/widget/src/resources/portal-widg=
et-netvibes-war/WEB-INF/portlet.xml
branches/Enterprise_Portal_Platform_4_3/widget/src/resources/portal-widg=
et-war/WEB-INF/portlet.xml
Log:
JBPORTAL-2453: additional parameters for gadgets are lost when the gadgets =
are displayed
Modified: branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss=
/portal/widget/AbstractWidgetPortlet.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss/porta=
l/widget/AbstractWidgetPortlet.java 2009-09-02 11:38:42 UTC (rev 13801)
+++ branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss/porta=
l/widget/AbstractWidgetPortlet.java 2009-09-09 13:03:05 UTC (rev 13802)
@@ -28,6 +28,7 @@
import javax.portlet.PortletConfig;
import javax.portlet.PortletException;
import javax.portlet.PortletMode;
+import javax.xml.namespace.QName;
=
/**
* @author Emanuel Muckenhuber
@@ -53,6 +54,10 @@
/** .*/
protected final PortletMode EDIT_CONTENT =3D new PortletMode("edit_cont=
ent");
=
+ protected static final QName CONTENT_SELECT =3D new QName("urn:jboss:po=
rtal:content", "select");
+ =
+ public static final String CONTENT_PARAMETER_PREFIX =3D "content.param.=
";
+
/**
* @return WidgetProvider
*/
Modified: branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss=
/portal/widget/google/GGWidgetPortlet.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss/porta=
l/widget/google/GGWidgetPortlet.java 2009-09-02 11:38:42 UTC (rev 13801)
+++ branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss/porta=
l/widget/google/GGWidgetPortlet.java 2009-09-09 13:03:05 UTC (rev 13802)
@@ -35,7 +35,6 @@
import javax.portlet.PortletSecurityException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
-import javax.xml.namespace.QName;
=
import java.io.IOException;
import java.io.PrintWriter;
@@ -50,8 +49,6 @@
*/
public class GGWidgetPortlet extends AbstractWidgetPortlet
{
- private static final QName CONTENT_SELECT =3D new QName("urn:jboss:port=
al:content", "select");
-
/** . */
private GGProvider provider =3D new GGProvider();
=
@@ -81,11 +78,11 @@
{
Map.Entry entry =3D (Map.Entry)i.next();
String contentParamName =3D (String)entry.getKey();
- if (contentParamName.startsWith("content.param"))
+ if (contentParamName.startsWith(CONTENT_PARAMETER_PREFIX))
{
String[] contentParamValue =3D (String[])entry.getValue(=
);
params.put(contentParamName, contentParamValue);
- widgetParams.put(contentParamName, contentParamValue[0]);
+ widgetParams.put(contentParamName.substring(CONTENT_PARA=
METER_PREFIX.length()), contentParamValue[0]);
}
}
=
Modified: branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss=
/portal/widget/netvibes/NetvibesWidgetPortlet.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss/porta=
l/widget/netvibes/NetvibesWidgetPortlet.java 2009-09-02 11:38:42 UTC (rev 1=
3801)
+++ branches/Enterprise_Portal_Platform_4_3/widget/src/main/org/jboss/porta=
l/widget/netvibes/NetvibesWidgetPortlet.java 2009-09-09 13:03:05 UTC (rev 1=
3802)
@@ -36,7 +36,6 @@
import javax.portlet.PortletSecurityException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
-import javax.xml.namespace.QName;
=
import org.jboss.portal.api.content.SelectedContent;
import org.jboss.portal.widget.AbstractWidgetPortlet;
@@ -51,8 +50,6 @@
public class NetvibesWidgetPortlet extends AbstractWidgetPortlet
{
=
- private static final QName CONTENT_SELECT =3D new QName("urn:jboss:port=
al:content", "select");
-
/** . */
private static final org.jboss.logging.Logger log =3D org.jboss.logging=
.Logger.getLogger(NetvibesWidgetPortlet.class);
=
@@ -112,11 +109,11 @@
{
Map.Entry entry =3D (Map.Entry)i.next();
String contentParamName =3D (String)entry.getKey();
- if (contentParamName.startsWith("content.param"))
+ if (contentParamName.startsWith(CONTENT_PARAMETER_PREFIX))
{
String[] contentParamValue =3D (String[])entry.getValue(=
);
params.put(contentParamName, contentParamValue);
- widgetParams.put(contentParamName.substring("content.par=
am.".length()), contentParamValue[0]);
+ widgetParams.put(contentParamName.substring(CONTENT_PARA=
METER_PREFIX.length()), contentParamValue[0]);
}
}
=
Modified: branches/Enterprise_Portal_Platform_4_3/widget/src/resources/port=
al-widget-netvibes-war/WEB-INF/portlet.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/Enterprise_Portal_Platform_4_3/widget/src/resources/portal-wid=
get-netvibes-war/WEB-INF/portlet.xml 2009-09-02 11:38:42 UTC (rev 13801)
+++ branches/Enterprise_Portal_Platform_4_3/widget/src/resources/portal-wid=
get-netvibes-war/WEB-INF/portlet.xml 2009-09-09 13:03:05 UTC (rev 13802)
@@ -66,7 +66,7 @@
Netvibes Widget
widget,netvibes
- x:s=
elect
+ x:select
uri
parameters
Modified: branches/Enterprise_Portal_Platform_4_3/widget/src/resources/port=
al-widget-war/WEB-INF/portlet.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/Enterprise_Portal_Platform_4_3/widget/src/resources/portal-wid=
get-war/WEB-INF/portlet.xml 2009-09-02 11:38:42 UTC (rev 13801)
+++ branches/Enterprise_Portal_Platform_4_3/widget/src/resources/portal-wid=
get-war/WEB-INF/portlet.xml 2009-09-09 13:03:05 UTC (rev 13802)
@@ -61,8 +61,9 @@
Google Widget
widget,google
- x:s=
elect
+ x:select
uri
+ parameters
=
@@ -75,4 +76,8 @@
c:uri
=
+
+ parameters
+ c:parameters
+
--===============4884320529631131595==--