You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2011/10/04 09:51:29 UTC
svn commit: r1178711 -
/myfaces/tobago/branches/tobago-1.0.x/extension/facelets/src/main/java/org/apache/myfaces/tobago/facelets/ContentTypeRule.java
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);
}
}