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

Make @ModelAttribute's not required...

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.5.1
    • Fix Version/s: None
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      Its a pain in the backside if you want your GET request to have access to the session object, since you have to create it first.

      Think of some type of workflow/data entry... they go to the page, they save their progress (but you don't want to commit to the database yet because they aren't done)... then they click the link to go back to the edit page, you have to write special code to make it all come together...

      If you could just check for null, you'd know whether to create the model object or just keep chugging along.

        Attachments

          Activity

            People

            • Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              ericanderson Eric Anderson
              Last updater:
              Trevor Marshall
            • Votes:
              7 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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