You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2009/01/23 11:40:55 UTC
svn commit: r736991 -
/myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java
Author: bommel
Date: Fri Jan 23 02:40:55 2009
New Revision: 736991
URL: http://svn.apache.org/viewvc?rev=736991&view=rev
Log:
(TOBAGO-740) Alternative SheetRenderer
Modified:
myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java
Modified: myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java?rev=736991&r1=736990&r2=736991&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/SimpleSheetRenderer.java Fri Jan 23 02:40:55 2009
@@ -109,7 +109,7 @@
boolean ajaxEnabled = TobagoConfig.getInstance(facesContext).isAjaxEnabled();
final String[] styles = new String[]{"style/tobago-sheet.css"};
- final String[] scripts = new String[]{"script/tobago-sheet.js", "script/tobago-simpleSheet.js"};
+ final String[] scripts = new String[]{"script/tobago-sheet.js"};
Integer frequency = null;
UIComponent facetReload = data.getFacet(TobagoConstants.FACET_RELOAD);
if (facetReload != null && facetReload instanceof UIReload && facetReload.isRendered()) {
@@ -129,7 +129,7 @@
UIPage page = ComponentUtil.findPage(facesContext, data);
page.getStyleFiles().add(styles[0]);
- page.getScriptFiles().addAll(java.util.Arrays.asList(scripts));
+ page.getScriptFiles().add(scripts[0]);
if (!ajaxEnabled) {
page.getOnloadScripts().add(cmds[0]);