Author: julien(a)jboss.com
Date: 2007-06-18 05:38:44 -0400 (Mon, 18 Jun 2007)
New Revision: 7456
Modified:
trunk/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java
Log:
- fixed partial update bug that was not sending back the correct markup to the client
Modified:
trunk/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java
===================================================================
---
trunk/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java 2007-06-17
23:33:00 UTC (rev 7455)
+++
trunk/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java 2007-06-18
09:38:44 UTC (rev 7456)
@@ -253,14 +253,14 @@
//
if (!fullRefresh)
{
- ArrayList windowToRefresh = new ArrayList();
+ ArrayList refreshedWindows = new ArrayList();
for (Iterator i =
page.getChildren(PortalObject.WINDOW_MASK).iterator();i.hasNext();)
{
PortalObject child = (PortalObject)i.next();
PortalObjectId childId = child.getId();
if (dirtyWindowIds.contains(childId))
{
- windowToRefresh.add(child);
+ refreshedWindows.add(child);
}
}
@@ -281,12 +281,12 @@
WindowContextFactory wcf = new WindowContextFactory(controllerContext);
//
- for (Iterator i = windowToRefresh.iterator();i.hasNext() &&
!fullRefresh;)
+ for (Iterator i = refreshedWindows.iterator();i.hasNext() &&
!fullRefresh;)
{
try
{
- PortalObject _window = (PortalObject)i.next();
- RenderWindowCommand rwc = new RenderWindowCommand(_window.getId());
+ Window refreshedWindow = (Window)i.next();
+ RenderWindowCommand rwc = new
RenderWindowCommand(refreshedWindow.getId());
WindowRendition rendition = rwc.render(controllerContext);
//
@@ -297,7 +297,7 @@
//
if (resp instanceof MarkupResponse)
{
- WindowContext wc = wcf.createWindowContext(window, rendition);
+ WindowContext wc = wcf.createWindowContext(refreshedWindow,
rendition);
// WindowContext wc = new WindowContext(
//
_window.getId().toString(PortalObjectPath.LEGACY_BASE64_FORMAT),
Show replies by date