You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by id...@apache.org on 2006/04/24 19:41:13 UTC

svn commit: r396617 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java

Author: idus
Date: Mon Apr 24 10:41:06 2006
New Revision: 396617

URL: http://svn.apache.org/viewcvs?rev=396617&view=rev
Log:
avoid String.replace to be able to use current version of Retrotranslator (1.0.3)

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java
URL: http://svn.apache.org/viewcvs/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java?rev=396617&r1=396616&r2=396617&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlRendererUtil.java Mon Apr 24 10:41:06 2006
@@ -509,8 +509,8 @@
     if (afterLoadCmds != null && afterLoadCmds.length > 0) {
       writer.writeText(", \n", null);
       for (int i = 0; i < afterLoadCmds.length; i++) {
-        String cmd
-            = afterLoadCmds[i].replace("\\", "\\\\").replace("\"", "\\\"");
+        String cmd = StringUtils.replace(afterLoadCmds[i], "\\", "\\\\");
+        cmd = StringUtils.replace(cmd, "\"", "\\\"");
         writer.writeText(i == 0 ? "          " : "        + ", null);
         writer.writeText("\"" + cmd + "\"\n", null);
       }