myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r920842 - /myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
Date Tue, 09 Mar 2010 12:32:16 GMT
Author: lofwyr
Date: Tue Mar  9 12:32:15 2010
New Revision: 920842

URL: http://svn.apache.org/viewvc?rev=920842&view=rev
Log:
TOBAGO-833: updateing jQuery to 1.4 (only works with 'jquery-compat-1.3' in the moment)

Modified:
    myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java?rev=920842&r1=920841&r2=920842&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
(original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
Tue Mar  9 12:32:15 2010
@@ -57,7 +57,6 @@ import javax.faces.context.FacesContext;
 import javax.faces.context.ResponseWriter;
 import java.io.IOException;
 import java.text.DecimalFormat;
-import java.text.NumberFormat;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Iterator;
@@ -116,9 +115,7 @@ public class PageRenderer extends PageRe
     long begin = System.nanoTime();
     LayoutContext layoutContext = new LayoutContext(page);
     layoutContext.layout();
-    long end = System.nanoTime();
-    NumberFormat format = new DecimalFormat("#,##0");
-    LOG.info("layouting takes: " + format.format(end-begin) + " ns");
+    LOG.info("Laying out takes: " + new DecimalFormat("#,##0").format(System.nanoTime() -
begin) + " ns");
 
 // LAYOUT End
 
@@ -231,11 +228,13 @@ public class PageRenderer extends PageRe
     List<String> scriptFiles = facesContext.getScriptFiles();
     // jquery.js and tobago.js needs to be first!
 
-//    scriptFiles.add(0, debugMode ? "script/jquery/1_4_1/jquery.js" : "script/jquery/1_4_1/jquery.min.js");
-    scriptFiles.add(0, debugMode ? "script/jquery/1_3_2/jquery.js" : "script/jquery/1_3_2/jquery.min.js");
-    scriptFiles.add(1, "script/tobago.js");
-    scriptFiles.add(2, "script/tobago-menu.js");
-    scriptFiles.add(3, "script/theme-config.js");
+    int pos = 0;
+    scriptFiles.add(pos++, debugMode ? "script/jquery/1_4_1/jquery.js" : "script/jquery/1_4_1/jquery.min.js");
+    scriptFiles.add(pos++, "script/jquery/1_4_1/jquery.compat-1.3.js"); // TODO: remove after
fixing AJAX
+//    scriptFiles.add(pos++, debugMode ? "script/jquery/1_3_2/jquery.js" : "script/jquery/1_3_2/jquery.min.js");
+    scriptFiles.add(pos++, "script/tobago.js");
+    scriptFiles.add(pos++, "script/tobago-menu.js");
+    scriptFiles.add(pos++, "script/theme-config.js");
     
     int clientLogSeverity = 2;
     if (debugMode) {



Mime
View raw message