[jboss-cvs] jboss-seam/ui/src/main/java/org/jboss/seam/ui/validator ...

Christian Bauer christian at hibernate.org
Mon Oct 8 02:55:54 EDT 2007


  User: cbauer  
  Date: 07/10/08 02:55:54

  Modified:    ui/src/main/java/org/jboss/seam/ui/validator 
                        FormattedTextValidator.java
  Log:
  Escape #{ in error message, which confused the Seam logger
  
  Revision  Changes    Path
  1.2       +1 -2      jboss-seam/ui/src/main/java/org/jboss/seam/ui/validator/FormattedTextValidator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FormattedTextValidator.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/ui/src/main/java/org/jboss/seam/ui/validator/FormattedTextValidator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- FormattedTextValidator.java	27 Sep 2007 12:01:19 -0000	1.1
  +++ FormattedTextValidator.java	8 Oct 2007 06:55:54 -0000	1.2
  @@ -100,7 +100,6 @@
           String msg = re.getMessage() + " at '" + (beginIndex == 0 ? "" : "...")
                   + originalText.substring(beginIndex, endIndex)
                   + (endIndex == originalText.length() ? "" : "...") + "'";
  -        return msg.replace("\n", " ").replace("\r", " ").replace("\uFFFF",
  -                "[END OF TEXT]");
  +        return msg.replace("\n", " ").replace("\r", " ").replace("\uFFFF","[END OF TEXT]").replace("#{", "# {");
       }
   }
  
  
  



More information about the jboss-cvs-commits mailing list