@Alef Arendsen
You say, you reload the object upon form submission. How do you do that? Do you mean someting like
Code:
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response,
Object command, BindException errors) throws Exception {
User u = (User)command;
User dbUser = userManager.getById(u.getId();
dbUser.setName = u.getName();
userManager.save(dbUser);
}
Because that is what I am trying to avoid (Manually copying values back and forth). Or should I override the formBackingObject and pull the object from the database there? I think the problem with that would be the error issue that rharing already pointed out.
Maybe what I want is not even possible. I mean if I went and reattached the User in my HttpSession like suggested, I'd still had to copy some values manually, right?