Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1237

Projecting form binding does not work with @ModelAttribute

    XMLWordPrintable

    Details

    • Sprint:
      Lovelace M1

      Description

      When @ModelAttribute is present on a Spring MVC controller method parameter that is a Spring Data projection interface, the binding fails as the standard model binding kicks in (i.e. our custom HandlerMethodArgumentResolver doesn't have a chance to kick in.

      We need to deploy a custom BeanPostProcessor that customizes the HandlerMethodArgumentResolver list held in RequestMappingHandlerAdapter instances.

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            olivergierke Oliver Drotbohm
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: