From ca3543ff66609b35ce845b6da82219e11de5e5a3 Mon Sep 17 00:00:00 2001 From: Jeremy Grelle Date: Fri, 11 Apr 2008 14:55:50 +0000 Subject: [PATCH] Changed the "resourcePath" attribute to just "path". --- .../org/springframework/faces/ui/ResourceRenderer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spring-faces/src/main/java/org/springframework/faces/ui/ResourceRenderer.java b/spring-faces/src/main/java/org/springframework/faces/ui/ResourceRenderer.java index f9a294a1..7dbc2652 100644 --- a/spring-faces/src/main/java/org/springframework/faces/ui/ResourceRenderer.java +++ b/spring-faces/src/main/java/org/springframework/faces/ui/ResourceRenderer.java @@ -14,12 +14,11 @@ public class ResourceRenderer extends Renderer { private static final ResourceHelper resourceHelper = new ResourceHelper(); public void encodeEnd(FacesContext context, UIComponent component) throws IOException { - String resourcePath = (String) component.getAttributes().get("resourcePath"); - Assert.hasText(resourcePath, "Resource component " + component.getClientId(context) - + " is missing a resourcePath."); + String resourcePath = (String) component.getAttributes().get("path"); + Assert.hasText(resourcePath, "Resource component " + component.getClientId(context) + " is missing a path."); if (!resourcePath.startsWith("/")) { resourcePath = "/" + resourcePath; - component.getAttributes().put("resourcePath", resourcePath); + component.getAttributes().put("path", resourcePath); } resourceHelper.renderResource(context, resourcePath); }