[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui/resource ...

Gavin King gavin.king at jboss.com
Tue May 1 12:43:53 EDT 2007


  User: gavin   
  Date: 07/05/01 12:43:53

  Modified:    src/ui/org/jboss/seam/ui/resource  StyleResource.java
  Log:
  migrate to unified EL everywhere
  
  Revision  Changes    Path
  1.3       +8 -5      jboss-seam/src/ui/org/jboss/seam/ui/resource/StyleResource.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StyleResource.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/resource/StyleResource.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- StyleResource.java	30 Apr 2007 18:49:30 -0000	1.2
  +++ StyleResource.java	1 May 2007 16:43:53 -0000	1.3
  @@ -93,12 +93,15 @@
         Matcher matcher =
             EL_PATTERN.matcher(string);
   
  -      while (matcher.find()) {
  -          Expressions.ValueBinding valueMethod = Expressions.instance().createValueBinding("#{"+matcher.group(1)+"}");
  -          String result = (String)valueMethod.getValue();
  -          if (result != null) {
  +      while (matcher.find()) 
  +      {
  +          String result = Expressions.instance().createValueExpression("#{"+matcher.group(1)+"}", String.class).getValue();
  +          if (result != null) 
  +          {
                 matcher.appendReplacement(parsed, result);
  -          } else {
  +          } 
  +          else 
  +          {
                 matcher.appendReplacement(parsed, "");
             }
         }
  
  
  



More information about the jboss-cvs-commits mailing list