incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: Custom messages for converters
Date Wed, 24 Jan 2007 07:21:57 GMT
On 1/24/07, magdolna holitska <mholitska3@hotmail.com> wrote:
> 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)

_detail


> - I tried to use the attribute convertBothMessageDetail

attributes renamed to

-messageDetailConvertBoth
-messageDetailConvertDate
-messageDetailConvertTime


> - 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
>
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Mime
View raw message