diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/PortletCommunicationManager.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/src/com/vaadin/server/PortletCommunicationManager.java b/server/src/com/vaadin/server/PortletCommunicationManager.java index 938bd2927d..8636c7e6e1 100644 --- a/server/src/com/vaadin/server/PortletCommunicationManager.java +++ b/server/src/com/vaadin/server/PortletCommunicationManager.java @@ -98,12 +98,6 @@ public class PortletCommunicationManager extends AbstractCommunicationManager { */ JSONObject defaults = super.getDefaultParameters(context); - ResourceURL portletResourceUrl = getRenderResponse(context) - .createResourceURL(); - portletResourceUrl.setResourceID(VaadinPortlet.RESOURCE_URL_ID); - defaults.put(ApplicationConstants.PORTLET_RESOUCE_URL_BASE, - portletResourceUrl.toString()); - defaults.put("pathInfo", ""); return defaults; @@ -131,8 +125,7 @@ public class PortletCommunicationManager extends AbstractCommunicationManager { @Override protected String getMainDivStyle(BootstrapContext context) { - VaadinService vaadinService = context.getRequest() - .getService(); + VaadinService vaadinService = context.getRequest().getService(); return vaadinService.getDeploymentConfiguration() .getApplicationOrSystemProperty( VaadinPortlet.PORTLET_PARAMETER_STYLE, null); @@ -150,6 +143,13 @@ public class PortletCommunicationManager extends AbstractCommunicationManager { ResourceURL resourceURL = portletResponse.createResourceURL(); resourceURL.setResourceID("browserDetails"); parameters.put("browserDetailsUrl", resourceURL.toString()); + + ResourceURL portletResourceUrl = getRenderResponse(context) + .createResourceURL(); + portletResourceUrl.setResourceID(VaadinPortlet.RESOURCE_URL_ID); + parameters.put(ApplicationConstants.PORTLET_RESOUCE_URL_BASE, + portletResourceUrl.toString()); + return parameters; } |