Return-Path: X-Original-To: apmail-myfaces-commits-archive@www.apache.org Delivered-To: apmail-myfaces-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 614AC75CC for ; Tue, 4 Oct 2011 07:51:53 +0000 (UTC) Received: (qmail 83559 invoked by uid 500); 4 Oct 2011 07:51:52 -0000 Delivered-To: apmail-myfaces-commits-archive@myfaces.apache.org Received: (qmail 83433 invoked by uid 500); 4 Oct 2011 07:51:52 -0000 Mailing-List: contact commits-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list commits@myfaces.apache.org Received: (qmail 83425 invoked by uid 99); 4 Oct 2011 07:51:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 07:51:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 07:51:50 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 395C923889DA for ; Tue, 4 Oct 2011 07:51:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@myfaces.apache.org From: bommel@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111004075129.395C923889DA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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); } }