Spring Framework
  1. Spring Framework
  2. SPR-7344

Spring Portlet MVC - Unable to return JSON data from @ResourceMapping

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.3
    • Fix Version/s: 4.2 RC1
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      In many scenarios it is required to support returning JSON data from the @ResourceMapping annotated method of controller. The @ResponseBody and ContentNegotiatingViewResolver currently work only in the servlet environment.

        Issue Links

          Activity

          Hide
          Ram Chinnakuzhandai added a comment -

          Can we have this feature to be part of upcoming release + 1, at least. This has been sitting in the rack for a long time, and would be a huge help for the portlet community.

          Show
          Ram Chinnakuzhandai added a comment - Can we have this feature to be part of upcoming release + 1, at least. This has been sitting in the rack for a long time, and would be a huge help for the portlet community.
          Hide
          Patrick Bergner added a comment -

          Happy new year, portlet people! Will we see the feature in the currently set 4.2 fix version or will it be bumped further and further?

          Show
          Patrick Bergner added a comment - Happy new year, portlet people! Will we see the feature in the currently set 4.2 fix version or will it be bumped further and further?
          Hide
          Abdulrhman Nabih ALKoptan added a comment -

          Any Update ?

          Show
          Abdulrhman Nabih ALKoptan added a comment - Any Update ?
          Hide
          Eugene Petruhin added a comment -

          I can't believe it's been open for 2.5 years and still no implementation is available.
          Spring's version is now 3.2 and servlets enjoy the benefits of @RequestBody and @Valid being used together but portlets can't even do @RequestBody for resource requests.

          Please consider adding this functionality to the next release.

          Show
          Eugene Petruhin added a comment - I can't believe it's been open for 2.5 years and still no implementation is available. Spring's version is now 3.2 and servlets enjoy the benefits of @RequestBody and @Valid being used together but portlets can't even do @RequestBody for resource requests. Please consider adding this functionality to the next release.
          Hide
          Michał Mela added a comment -

          Was there any progress on the subject? I am especially interested in any development in the areas of

          • @RequestBody handler method's annotation Wendy mentioned
          • MessageConverters property in portlet's version of AnnotationMethodHandlerAdapter - it would be nice to at least know why is this absent, because I couldn't find anything on that particular matter in documentation
          Show
          Michał Mela added a comment - Was there any progress on the subject? I am especially interested in any development in the areas of @RequestBody handler method's annotation Wendy mentioned MessageConverters property in portlet's version of AnnotationMethodHandlerAdapter - it would be nice to at least know why is this absent, because I couldn't find anything on that particular matter in documentation

            People

            • Assignee:
              Sébastien Deleuze
              Reporter:
              Ashish Sarin
              Last updater:
              Juergen Hoeller
            • Votes:
              60 Vote for this issue
              Watchers:
              43 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                11 weeks, 6 days ago