Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-6299

Support for @ModelAttribute interdependency

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 2.5.6
    • Fix Version/s: 4.1 RC1
    • Component/s: Web
    • Labels:
      None

      Description

      A common requirement is that a @ModelAttribute annotated method be dependent upon another.

      ie.

      @ModelAttribute("foo")
      public Object getFoo() {
          ...
      }
      
      @ModelAttribute("bar")
      public Object getBar(@ModelAttribute("foo") Object foo) {
        if( some condition of foo ){
          do stuff
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rstoya05-aop Rossen Stoyanchev
                Reporter:
                jglynn John Glynn
                Last updater:
                Juergen Hoeller
              • Votes:
                27 Vote for this issue
                Watchers:
                32 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 2 weeks, 6 days ago