myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svieu...@apache.org
Subject svn commit: r239991 - /myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java
Date Thu, 25 Aug 2005 04:38:21 GMT
Author: svieujot
Date: Wed Aug 24 21:38:17 2005
New Revision: 239991

URL: http://svn.apache.org/viewcvs?rev=239991&view=rev
Log:
inputSuggestAjax : Add scripts to the header (avoids duplicates).

Modified:
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java

Modified: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java?rev=239991&r1=239990&r2=239991&view=diff
==============================================================================
--- myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java
(original)
+++ myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/inputsuggestajax/InputSuggestAjaxRenderer.java
Wed Aug 24 21:38:17 2005
@@ -70,11 +70,11 @@
         String javascriptLocation = (String)component.getAttributes().get(JSFAttr.JAVASCRIPT_LOCATION);
         if (javascriptLocation == null)
         {
-            AddResource.addJavaScriptHere(InputSuggestAjaxRenderer.class, "prototype.js",
context);
-            AddResource.addJavaScriptHere(InputSuggestAjaxRenderer.class, "effects.js", context);
-            AddResource.addJavaScriptHere(InputSuggestAjaxRenderer.class, "dragdrop.js",
context);
-            AddResource.addJavaScriptHere(InputSuggestAjaxRenderer.class, "controls.js",
context);
-            AddResource.addJavaScriptHere(InputSuggestAjaxRenderer.class, "myFaces.js", context);
+            AddResource.addJavaScriptToHeader(InputSuggestAjaxRenderer.class, "prototype.js",
context);
+            AddResource.addJavaScriptToHeader(InputSuggestAjaxRenderer.class, "effects.js",
context);
+            AddResource.addJavaScriptToHeader(InputSuggestAjaxRenderer.class, "dragdrop.js",
context);
+            AddResource.addJavaScriptToHeader(InputSuggestAjaxRenderer.class, "controls.js",
context);
+            AddResource.addJavaScriptToHeader(InputSuggestAjaxRenderer.class, "myFaces.js",
context);
 
             if ( ((InputSuggestAjax)component).getLayout().equals("default"))
             {



Mime
View raw message