myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r1178711 - /myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java
Date Tue, 04 Oct 2011 07:51:29 GMT
Author: bommel
Date: Tue Oct  4 07:51:28 2011
New Revision: 1178711

URL: http://svn.apache.org/viewvc?rev=1178711&view=rev
Log:
(TOBAGO-1031) Missing ValueExpression support for contentType in tc:validateFileItem

Modified:
    myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java

Modified: myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java?rev=1178711&r1=1178710&r2=1178711&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java
Tue Oct  4 07:51:28 2011
@@ -45,7 +45,7 @@ public class ContentTypeRule extends Met
     }
 
     public void applyMetadata(FaceletContext ctx, Object instance) {
-      String[] components = StringUtils.split(attribute.getValue(), ", ");
+      String[] components = StringUtils.split(attribute.getValue(ctx), ", ");
       ((FileItemValidator) instance).setContentType(components);
     }
   }



Mime
View raw message