Author: thomas.heute(a)jboss.com
Date: 2007-05-24 04:56:01 -0400 (Thu, 24 May 2007)
New Revision: 7318
Modified:
trunk/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java
Log:
JBPORTAL-1412: The current portlet instance should be the default selected item in the
list
Modified:
trunk/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java
===================================================================
---
trunk/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java 2007-05-23
23:18:37 UTC (rev 7317)
+++
trunk/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java 2007-05-24
08:56:01 UTC (rev 7318)
@@ -68,6 +68,8 @@
/** The serialVersionUID */
private static final long serialVersionUID = -8923517554726982622L;
+
+ private static final String CONTENT_URI = "content.uri";
// Wired services
@@ -385,7 +387,7 @@
if (content != null)
{
renderParameters = new HashMap();
- renderParameters.put("uri", new
String[]{content.getURI()});
+ renderParameters.put(CONTENT_URI, new String[]{content.getURI()});
}
break;
}
@@ -530,7 +532,7 @@
Map actionParams = actionEvent.getParameterMap();
if (actionParams.get("content.action.select") != null)
{
- String[] uris = (String[])actionParams.get("content.uri");
+ String[] uris = (String[])actionParams.get(CONTENT_URI);
if (uris != null && uris.length > 0)
{
String uri = uris[0];
Show replies by date