Back Forum Reply New

Several Fields

Hi,

I've a form which needs an adress to be entered, all fields for themself are required, so if one field is not filled, an individual error is shown with errors.rejectValue.....

If all fields are filled with an value, a Webservice tries to fetch some informations about this adress, but i get an Message if the adress itself is not valid. I don't know which field could be wrong, maybe only the zip.

I want all field-labeles to be marked, but only one central mesage to be shown. One solution is to reject each fiel seperate and give null as code and no default message and only to one field i promote a code and the default message. But it seems not very comfortable. I'd like to use something like errors.rejectValues(lt;List of fieldsgt;, code, defaultMessage) is there any default solution in Spring.

thx

Joerg
¥
Back Forum Reply New