Uploaded image for project: 'PUBLIC - MVC4SPRING'
  1. PUBLIC - MVC4SPRING
  2. MVCS-52

WebFlow XHR with portlet:resourceURL does not invoke a controller on the backend

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.1.3, 5.2.2, 5.3.0
    • Fix Version/s: 5.1.5, 5.2.4, 5.3.2
    • Component/s: demo, webflow
    • Labels:
      None

      Description

      Problem Background

      The initial version of the Applicant WebFlow demo portlet does not use <portlet:resourceURL in conjunction with a

      However, according to the following documentation, this should be supported:
      https://docs.spring.io/spring-webflow/docs/current/reference/htmlsingle/#whatsnew-portlet-resource-requests

      Steps to Reproduce

      1. Modify the page1.jsp view of the Applicant WebFlow demo so that it uses a <portlet:resourceURL to invoke the XHR: For example:
      https://github.com/liferay/portletmvc4spring/blob/master/demo/applicant-jsp-portlet/src/main/webapp/WEB-INF/views/applicant.jspx#L30-L52

      2. Deploy the portlet and type "32801" into the postal code field

      Expected Results

      The ApplicantController.autoFill(...) backend method should get called and return some JSON that gets parsed in the XHR callback on the frontend. The result should be "Orlando" auto-filled for the city and "Florida" auto-filled for the province.

      Actual Results

      The ApplicantController.autoFill(...) backend method is not called, and the auto-fill fails.

        Attachments

          Activity

            People

            Assignee:
            fabian.bouche Fabian Bouché
            Reporter:
            neil.griffin Neil Griffin
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package
                5.1.5
                5.2.4
                5.3.2