On 1/24/07, magdolna holitska <[EMAIL PROTECTED]> 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

Reply via email to