Is is possible to modify a @ModelAttribute before it is validated via @Validated.
ie
@RequestMapping(value = "/doSomething", method = RequestMethod.POST)
public final ModelAndView save(
@Validated(value = {myGroup.class}) @ModelAttribute("myObject") MyObject myObject)
I need to change the state of myObject before @Validated is executed
What about add a ModelAttribute populate method?
The side affect is this method will be invoked before every @RequestMapping method if I'm not mistaken.
Update1: example