Announcement Announcement Module
Collapse
No announcement yet.
@SessionAttributes AND multiple windows Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @SessionAttributes AND multiple windows

    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?


    Code:
    @Controller
    @SessionAttributes("mymodel")
    @RequestMapping("/mymodel.do")
    public MyController{
    
    	@RequestMapping(method = RequestMethod.POST)
    	public ModelAndView processSubmitRfq(@ModelAttribute("mymodel") MyModel myModel, Errors errors)  {
       .... 
    
    }
    
    
    }
    for example replace @SessionAttributes("mymodel") by @SessionAttributes("mymodel"+mymodel.id)
    AND @ModelAttribute("mymodel"+mymodel.id)


    I am clear?

  • #2
    In fact I want to do this with Annotated MVC

    Comment


    • #3
      JIRA .... http://jira.springframework.org/browse/SPR-4160

      Comment


      • #4
        So when Spring 3 will be release?
        this is an important issue for me.

        Comment


        • #5
          hi all,

          I am currently using Spring Web Flow and it s resolved all my problems.


          cheers,
          Julien.-

          Comment

          Working...
          X