|
From: <jue...@we...> - 2003-08-22 13:17:54
|
Jean-Pierre, If you define an entry in your message properties like = "typeMismatch=3DPlease enter a valid date" or = "typeMismatch.birthday=3D..." or "typeMismatch.person.birthday=3D...", = status.getMessage() should return the appropriate message. Juergen -----Original Message----- From: jp....@ti... [mailto:jp....@ti...] Sent: Friday, August 22, 2003 12:41 PM To: spr...@li... Subject: [Springframework-developer] nested tags Juergen, I just tested your new version of handling Mismatch exceptions from the = binder for nested properties. - The "wrong" value comes back now. - The status.getMessage, previously void, send now the getMessage() = content of the exception. The expected behaviour would be to have the = classname as it will be difficult to have an entry in the properties = file like <Failed to convert property value of type [java.lang.String] = to required type [java.util.Date] for property named [person.birthday]; = nested exception is: java.lang.IllegalArgumentException: Could not parse = date: Unparseable date: "fff"> ;-). Regards, Jean-Pierre ********** L'ADSL A 20 EUR/MOIS********** Tiscali propose l'ADSL le moins cher du march=E9 : 20 EUR/mois et le = modem ADSL offert !=20 Pour profiter de cette offre exceptionnelle, cliquez ici : = http://register.tiscali.fr/adsl/ Offre soumise =E0 conditions. ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click = here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |