|
From: <jue...@we...> - 2003-08-20 15:16:02
|
Jean-Pierre,
You should see a "typeMismatch" error in case of such malformed values. =
If you use status.value, you should see the malformed string again. And =
if you define a message for code "typeMismatch" or =
"typeMismatch.{fieldName}" or "typeMismatch.{objectName}.{fieldName}" =
(see FieldError javadoc) in the message source, you should see a proper =
error message too.
I've just tried on my installation, it still works ;-)
Juergen
-----Original Message-----
From: jp....@ti... [mailto:jp....@ti...]
Sent: Wednesday, August 20, 2003 4:40 PM
To: spr...@li...
Subject: [Springframework-developer] Tags
Hi,
I have a basic problem with the form validation. Ok for rejectValue from =
a validator, but how to handle Mismatch errors from the binder itself?=20
Assume using a date field that is malformed by the user. The editor will =
not be able to parse the date. Currently I come back to the form page as =
expected. But:
1) The malformed data is lost. The field is empty.
2) The status.errorMessage is void also.
How not loose the initial input and how be able to write an error =
message to the user?
Sorry for a so basic question, but if I cannot find the solution, it =
will be worse for new users.
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 Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|