> -----Original Message----- > From: Fred Lamuette [mailto:[EMAIL PROTECTED] > > My question : how can i do to see the message "Your text "Foo > Bar" could not be parsed as a date", what can i do in my > dateconverter to add a FieldError ???? > > Cheers. > Richard.
Short answer: You can't Long answer: You can't, yet... I'm trying to figure out if it's ok for you if we figure out how to make the converter add a field error, but then the RequiredFieldValidator is also going to add a message. I think we can do this with a custom runtime error... throw new XworkTypeConversionMessageException("Your text '" + value + "' could not be parsed as a date"); The type conversion framework can be made to catch this exception type and add the message from it to the field errors. Jason ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork