diff --git a/jsf/jsf-widgets/pom.xml b/jsf/jsf-widgets/pom.xml index 386f01ec0675..47c56552eb99 100644 --- a/jsf/jsf-widgets/pom.xml +++ b/jsf/jsf-widgets/pom.xml @@ -28,6 +28,10 @@ + + org.sakaiproject.portal + sakai-portal-util + org.sakaiproject.kernel sakai-kernel-util diff --git a/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/ScriptRenderer.java b/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/ScriptRenderer.java index 1d331ffb9d0f..81ef7988642c 100644 --- a/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/ScriptRenderer.java +++ b/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/ScriptRenderer.java @@ -30,6 +30,7 @@ import javax.faces.render.Renderer; import org.sakaiproject.jsf.util.RendererUtil; +import org.sakaiproject.portal.util.PortalUtils; /** *

Description:

@@ -113,7 +114,7 @@ public void encodeEnd(FacesContext context, UIComponent component) } - writer.write(""); } diff --git a/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/StylesheetRenderer.java b/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/StylesheetRenderer.java index 9bf1e95ea4d2..9e78d1a7037b 100644 --- a/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/StylesheetRenderer.java +++ b/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/StylesheetRenderer.java @@ -30,6 +30,7 @@ import javax.faces.render.Renderer; import org.sakaiproject.jsf.util.RendererUtil; +import org.sakaiproject.portal.util.PortalUtils; /** *

Description:

@@ -101,6 +102,7 @@ public void encodeEnd(FacesContext context, UIComponent component) writer.write(contextPath); writer.write( (String) RendererUtil.getAttribute(context, component, "path")); + writer.write(PortalUtils.getCDNQuery()); writer.write("\"/>"); } diff --git a/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/jsf/renderer/ScriptRenderer.java b/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/jsf/renderer/ScriptRenderer.java index 2101fb60960b..335a6f6f69c1 100644 --- a/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/jsf/renderer/ScriptRenderer.java +++ b/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/jsf/renderer/ScriptRenderer.java @@ -30,6 +30,7 @@ import javax.faces.context.FacesContext; import javax.faces.context.ResponseWriter; import javax.faces.render.Renderer; +import org.sakaiproject.portal.util.PortalUtils; /** *

Description:

@@ -101,7 +102,7 @@ public void encodeEnd(FacesContext context, UIComponent component) ResponseWriter writer = context.getResponseWriter(); String contextPath = context.getExternalContext() .getRequestContextPath(); - writer.write(""); } diff --git a/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/jsf/renderer/StylesheetRenderer.java b/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/jsf/renderer/StylesheetRenderer.java index 1860085ea991..9b9f7acf641e 100644 --- a/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/jsf/renderer/StylesheetRenderer.java +++ b/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/jsf/renderer/StylesheetRenderer.java @@ -30,6 +30,7 @@ import javax.faces.context.FacesContext; import javax.faces.context.ResponseWriter; import javax.faces.render.Renderer; +import org.sakaiproject.portal.util.PortalUtils; /** *

Description:

@@ -95,6 +96,7 @@ public void encodeEnd(FacesContext context, UIComponent component) writer.write(contextPath); writer.write( (String) component.getAttributes().get("path")); + writer.write(PortalUtils.getCDNQuery()); writer.write("\"/>"); }