From 02f50946169047c67c116999c4703e6e98d466e4 Mon Sep 17 00:00:00 2001 From: Jeremy Grelle Date: Mon, 10 Nov 2008 15:21:44 +0000 Subject: [PATCH] SWF-941 - Handling whitespace correctly in the fragments attribute. --- .../java/org/springframework/js/ajax/tiles2/AjaxTilesView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 f0c4fb0c..03bb2fc4 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 @@ -111,7 +111,8 @@ public class AjaxTilesView extends TilesView { protected String[] getRenderFragments(Map model, HttpServletRequest request, HttpServletResponse response) { String attrName = request.getParameter(FRAGMENTS_PARAM); - return StringUtils.commaDelimitedListToStringArray(attrName); + String[] renderFragments = StringUtils.commaDelimitedListToStringArray(attrName); + return StringUtils.trimArrayElements(renderFragments); } private void flattenAttributeMap(BasicTilesContainer container, TilesRequestContext requestContext, Map resultMap,