I\'m trying to create a multiaction web controller using Spring annotations. This controller will be responsible for adding and removing user profiles and preparing referenc
I don't think you want to be specifying the field
argument to WebDataBinder.registerCustomEditor()
. This intended to work alongside form-backing objects, and you're not using that.
Try the simpler 2-arg method instead, and it should work:
binder.registerCustomEditor(UserAccount.class, new UserAccountPropertyEditor(userManager));
binder.registerCustomEditor(Profile.class, new ProfilePropertyEditor(profileManager));