SWF-941 - Handling whitespace correctly in the fragments attribute.

This commit is contained in:
Jeremy Grelle
2008-11-10 15:21:44 +00:00
parent c972fc7c4c
commit 02f5094616

View File

@@ -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,