Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 23839 invoked from network); 20 Feb 2009 09:37:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2009 09:37:35 -0000 Received: (qmail 74564 invoked by uid 500); 20 Feb 2009 09:37:34 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 74321 invoked by uid 500); 20 Feb 2009 09:37:33 -0000 Mailing-List: contact dev-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 dev@myfaces.apache.org Received: (qmail 74312 invoked by uid 99); 20 Feb 2009 09:37:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2009 01:37:33 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2009 09:37:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E993F234C4AF for ; Fri, 20 Feb 2009 01:37:01 -0800 (PST) Message-ID: <1866028197.1235122621955.JavaMail.jira@brutus> Date: Fri, 20 Feb 2009 01:37:01 -0800 (PST) From: "Agam Dass (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (TRINIDAD-1407) DateTimeConverter doesn't convert correctly as per the expectedDataType MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org DateTimeConverter doesn't convert correctly as per the expectedDataType ----------------------------------------------------------------------- Key: TRINIDAD-1407 URL: https://issues.apache.org/jira/browse/TRINIDAD-1407 Project: MyFaces Trinidad Issue Type: Bug Reporter: Agam Dass Priority: Blocker In the org.apache.myfaces.trinidadinternal.convert.DateTimeConverter#getAsObject() retrieves the date by parsing the String and then it calls DateTimeConverter.__typeConvert() to convert this type to the expected type. But in the method __typeConvert() it gets the expectedType by calling the type instead of getting the expectedType(). So it should be changed to expression.getExpectedType() instead of expression.getType() Class : org.apache.myfaces.trinidadinternal.convert.DateTimeConverter Method : static Object __typeConvert(FacesContext context, Converter converter, UIComponent component, String strValue, Object value) Line # 123 Remove : Class expectedType = expression.getType(context.getELContext()); Add : Class expectedType = expression.getExpectedType(); =========================================================================== This need to be fixed in Trinidad 1.2.10.1 and then forward-port to Trinidad 1.2.11.1. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.