Author: hfnukal
Date: 2011-07-08 09:21:58 -0400 (Fri, 08 Jul 2011)
New Revision: 6847
Modified:
epp/portal/branches/EPP_5_1_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/ModelAdapter.java
Log:
JBEPP-854 Portlet's context-root cannot contain slashes
Modified:
epp/portal/branches/EPP_5_1_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/ModelAdapter.java
===================================================================
---
epp/portal/branches/EPP_5_1_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/ModelAdapter.java 2011-07-08
12:39:42 UTC (rev 6846)
+++
epp/portal/branches/EPP_5_1_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/ModelAdapter.java 2011-07-08
13:21:58 UTC (rev 6847)
@@ -128,8 +128,7 @@
int indexOfSeparator = applicationState.lastIndexOf("/");
String appName = applicationState.substring(0, indexOfSeparator);
String portletName = applicationState.substring(indexOfSeparator + 1);
- return
PortletContext.createPortletContext(PortletInvoker.LOCAL_PORTLET_INVOKER_ID +
"./" + appName + "."
- + portletName);
+ return PortletContext.reference(PortletInvoker.LOCAL_PORTLET_INVOKER_ID,
PortletContext.createPortletContext(appName, portletName));
}
@Override
Show replies by date