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); }