myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r492563 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/HtmlWriterUtil.java
Date Thu, 04 Jan 2007 13:39:42 GMT
Author: weber
Date: Thu Jan  4 05:39:41 2007
New Revision: 492563

URL: http://svn.apache.org/viewvc?view=rev&rev=492563
Log:
TOBAGO-218 (tobago throws an exception after validation form in not English locale)
TOBAGO-230 (Exception when using umlauts in confirm component)

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/HtmlWriterUtil.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/HtmlWriterUtil.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/HtmlWriterUtil.java?view=diff&rev=492563&r1=492562&r2=492563
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/HtmlWriterUtil.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/HtmlWriterUtil.java
Thu Jan  4 05:39:41 2007
@@ -175,10 +175,15 @@
    */
   private void writeDecRef(final char ch) throws IOException {
     if (ch == '\u20ac') {
-      out.write("€");
+      out.write('&');
+      out.write('e');
+      out.write('u');
+      out.write('r');
+      out.write('o');
       return;
     }
-    out.write("&#");
+    out.write('&');
+    out.write('#');
     // Formerly used String.valueOf().  This version tests out
     // about 40% faster in a microbenchmark (and on systems where GC is
     // going gonzo, it should be even better)



Mime
View raw message