Hi all,
(i use annotated spring MVC).
I have in the same browser 2 tabs with the same form (but with different models).
How can I specify that the binding must be done with the good model?
for example replace @SessionAttributes("mymodel") by @SessionAttributes("mymodel"+mymodel.id)Code:@Controller @SessionAttributes("mymodel") @RequestMapping("/mymodel.do") public MyController{ @RequestMapping(method = RequestMethod.POST) public ModelAndView processSubmitRfq(@ModelAttribute("mymodel") MyModel myModel, Errors errors) { .... } }
AND @ModelAttribute("mymodel"+mymodel.id)
I am clear?


Reply With Quote