Author: thomas.heute(a)jboss.com
Date: 2008-10-03 05:05:41 -0400 (Fri, 03 Oct 2008)
New Revision: 12027
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java
Log:
JBPORTAL-2187: Partial refresh broke while integrating portlet container 2.0
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java 2008-10-02
19:43:18 UTC (rev 12026)
+++
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java 2008-10-03
09:05:41 UTC (rev 12027)
@@ -171,20 +171,22 @@
}
}
else if (controllerResponse instanceof UpdatePageResponse)
+// {
+// UpdatePageResponse upr = (UpdatePageResponse)controllerResponse;
+// ViewPageCommand rpc = new ViewPageCommand(upr.getPageId());
+// String url = controllerContext.renderURL(rpc, null, null);
+// UpdatePageLocationResponse dresp = new UpdatePageLocationResponse(url);
+// return new AjaxResponse(dresp);
+// }
+// else if (controllerResponse instanceof UpdateWindowResponse)
{
- UpdatePageResponse upr = (UpdatePageResponse)controllerResponse;
- ViewPageCommand rpc = new ViewPageCommand(upr.getPageId());
- String url = controllerContext.renderURL(rpc, null, null);
- UpdatePageLocationResponse dresp = new UpdatePageLocationResponse(url);
- return new AjaxResponse(dresp);
- }
- else if (controllerResponse instanceof UpdateWindowResponse)
- {
- UpdateWindowResponse upw = (UpdateWindowResponse)controllerResponse;
+ UpdatePageResponse upw = (UpdatePageResponse)controllerResponse;
// Obtain page and portal
- final Window window =
(Window)portalObjectContainer.getObject(upw.getWindowId());
- Page page = (Page)window.getParent();
+// final Window window =
(Window)portalObjectContainer.getObject(upw.getWindowId());
+// Page page = (Page)window.getParent();
+ final Page page = (Page)portalObjectContainer.getObject(upw.getPageId());
+
//
NavigationalStateContext ctx =
(NavigationalStateContext)controllerContext.getAttributeResolver(ControllerCommand.NAVIGATIONAL_STATE_SCOPE);
Show replies by date