As I read here:
And as I saw in some other question like this one, I'm registering a StringTrimmerEditor in my controller like this:
@Controller
public class MyController{
@InitBinder
public void initBinder(WebDataBinder binder)
{
binder.registerCustomEditor(StringTrimmerEditor.class,new StringTrimmerEditor(false));
}
It compiles and runs, but does not work, it doesn't trim the data. I don't know what am I missing. Anyone?
thanks