myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r1178709 - /myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java
Date Tue, 04 Oct 2011 07:45:43 GMT
Author: bommel
Date: Tue Oct  4 07:45:42 2011
New Revision: 1178709

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

Modified:
    myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java

Modified: myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java?rev=1178709&r1=1178708&r2=1178709&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java
(original)
+++ myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java
Tue Oct  4 07:45:42 2011
@@ -45,7 +45,7 @@ public class ContentTypeRule extends Met
     }
 
     public void applyMetadata(FaceletContext ctx, Object instance) {
-      String[] components = ComponentUtils.splitList(attribute.getValue());
+      String[] components = ComponentUtils.splitList(attribute.getValue(ctx));
       ((FileItemValidator) instance).setContentType(components);
     }
   }



Mime
View raw message