From 11e6c3a108ab1b5dbc713b7a6bfad77c0991f03a Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Sun, 11 Jul 2010 23:47:12 +0000 Subject: [PATCH] SWF-1304 replace code to flush response buffer with request attribute to force JSP include --- .../org/springframework/js/ajax/tiles2/AjaxTilesView.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-js/src/main/java/org/springframework/js/ajax/tiles2/AjaxTilesView.java b/spring-js/src/main/java/org/springframework/js/ajax/tiles2/AjaxTilesView.java index 08ee1894..92239089 100644 --- a/spring-js/src/main/java/org/springframework/js/ajax/tiles2/AjaxTilesView.java +++ b/spring-js/src/main/java/org/springframework/js/ajax/tiles2/AjaxTilesView.java @@ -112,9 +112,7 @@ public class AjaxTilesView extends TilesView { addRuntimeAttributes(container, flattenedAttributeMap, request, response); if (fragmentsToRender.length > 1) { - // When rendering more than one fragment, flush the buffer in order to commit the response. - // With the response committed, Tiles does an include rather than forward. - response.flushBuffer(); + request.setAttribute(ServletUtil.FORCE_INCLUDE_ATTRIBUTE_NAME, true); } for (int i = 0; i < fragmentsToRender.length; i++) {