Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-22287

ConfigurationActions defined in sdk portlets cannot use resource actions

    Details

    • Fix Priority:
      3
    • Liferay Contributor's Agreement:
      Accept

      Description

      Steps to reproduce :

      1. Deploy the attached minimal test case
      2. Drag the minimal testcase portlet from the sample category to your page
      3. Open the configuration window for this portlet by clicking the wrench in the right hand corner and selecting configuration
      4. click the link called "click me"

      Notice that nothing happens where it should output the text "This got written to the response"

      The reason for this problem is that in EditConfigurationAction.java the following line gets called

      ResourceServingConfigurationAction resourceServingConfigurationAction =
      (ResourceServingConfigurationAction)getConfigurationAction(
      portlet);

      This results in the following exception being raised

      java.lang.ClassCastException: $Proxy356 cannot be cast to com.liferay.portal.kernel.portlet.ResourceServingConfigurationAction

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            jelmer Jelmer Kuperus (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              8 years, 4 days ago

                Packages

                Version Package