myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r615605 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtil.java
Date Sun, 27 Jan 2008 14:10:49 GMT
Author: bommel
Date: Sun Jan 27 06:10:47 2008
New Revision: 615605

URL: http://svn.apache.org/viewvc?rev=615605&view=rev
Log:
(TOBAGO-543) replace prototype with dojo as underlying ajax library 
added dojo temp repository

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtil.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtil.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtil.java?rev=615605&r1=615604&r2=615605&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtil.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtil.java
Sun Jan 27 06:10:47 2008
@@ -18,7 +18,6 @@
  */
 
 import org.apache.myfaces.tobago.renderkit.html.CommandRendererHelper;
-import org.apache.myfaces.tobago.servlet.ResourceServlet;
 
 import javax.faces.component.UIViewRoot;
 import javax.faces.context.FacesContext;
@@ -95,13 +94,12 @@
   public static List<String> getScripts(FacesContext facesContext, String name) {
     UIViewRoot viewRoot = facesContext.getViewRoot();
     String contextPath = facesContext.getExternalContext().getRequestContextPath();
-    String[] scripts;
-    if (name.startsWith("script/dojo/")) {
-      scripts = new String[] {"/" + ResourceServlet.DOJO_RESOURCE_PREFIX + name.substring("script/dojo/".length())};
     
-    } else {
-      scripts = ResourceManagerFactory.getResourceManager(facesContext)
+    //if (name.startsWith("script/dojo/")) {
+    //  scripts = new String[] {"/" + ResourceServlet.DOJO_RESOURCE_PREFIX + name.substring("script/dojo/".length())};
+    //} else {
+    String[] scripts = ResourceManagerFactory.getResourceManager(facesContext)
         .getScripts(viewRoot, name);
-    }
+    //}
     return addContextPath(scripts, contextPath);
   }
 



Mime
View raw message