Sorry to wake up this old sleeping thread, but I have the same problem as sgarlatm. I must show human readable text instead of java variable.
Code:
@InitBinder("sector")
public void initBinder(WebDataBinder binder) {
String[] fields = {"sectorID", "name", "ingate", "outgate", "effms", "lotDeletion", "lotsetDeletion", "prodCode"};
binder.setAllowedFields(fields);
binder.setRequiredFields(fields);
}
In validation.properties
Code:
required={0} - Ce champ doit contenir une valeur.
With this, Spring shows the variable name.
Code:
sectorID - Ce champ ...
name - Ce champ ...
...
Someone have found a way to do this? To show human readable text instead of variable?
Thanks!