From adffaces-user-return-1982-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Wed Jan 24 00:32:52 2007 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 69489 invoked from network); 24 Jan 2007 00:32:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jan 2007 00:32:51 -0000 Received: (qmail 54899 invoked by uid 500); 24 Jan 2007 00:32:57 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 54664 invoked by uid 500); 24 Jan 2007 00:32:57 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 54655 invoked by uid 99); 24 Jan 2007 00:32:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 16:32:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mholitska3@hotmail.com designates 65.54.246.213 as permitted sender) Received: from [65.54.246.213] (HELO bay0-omc3-s13.bay0.hotmail.com) (65.54.246.213) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 16:32:47 -0800 Received: from hotmail.com ([64.4.16.71]) by bay0-omc3-s13.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 23 Jan 2007 16:32:26 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 23 Jan 2007 16:32:26 -0800 Message-ID: Received: from 198.168.250.7 by by22fd.bay22.hotmail.msn.com with HTTP; Wed, 24 Jan 2007 00:32:25 GMT X-Originating-IP: [198.168.250.7] X-Originating-Email: [mholitska3@hotmail.com] X-Sender: mholitska3@hotmail.com From: "magdolna holitska" To: adffaces-user@incubator.apache.org Subject: Custom messages for converters Date: Tue, 23 Jan 2007 19:32:25 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 24 Jan 2007 00:32:26.0186 (UTC) FILETIME=[1F34AAA0:01C73F4F] X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I have been trying, unsuccessfully to customize the error messages generated by a date/time converter (tr:convertDateTime). - I tried to add the message id to my resources file (org.apache.myfaces.trinidad.convert.DateTimeConverter.CONVERT_BOTH) - I tried to use the attribute convertBothMessageDetail - I tried to create my own converter class by extending Trinidad converter and use the setConvertBothMessageDetail method to set the custom message It appears that it only works if I don't set the pattern. As soon as I am setting the pattern I get a default validation text (The value "xxx" is not a valid date. Valid example: "Nov-29-2005 15:45:24".) Validator messages seem to be easily customizable, but not converters. Could please someone point out what I am missing here? Thank you, Magdolna _________________________________________________________________ Windows Live Spaces: share your New Year pictures! http://discoverspaces.live.com/?loc=en-CA