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

Cannot load configuration on portlet using Portlet 3 API with Portlet Configuration JSPs

    Details

      Description

      DESCRIPTION
      Cannot load configuration on portlet using Portlet 3 API with Portlet Configuration JSPs / DefaultConfigurationAction as described in https://dev.liferay.com/develop/reference/-/knowledge_base/7-1/breaking-changes#updated-liferay-portals-portlet-api-implementation
      STEPS TO REPRODUCE
      For reference, this workspace was created using the following steps:
      1. Open LDS 3.3.1.201809120710-ga2.
      2. Create a new Workspace.
      3. Download the "configuration-action" module from https://github.com/liferay/liferay-blade-samples/blob/7.1/liferay-workspace/apps/configuration-action into the "modules" folder/project.
      4. Make the following changes to enagle the 3.0 API, as per https://dev.liferay.com/develop/reference/-/knowledge_base/7-1/breaking-changes#updated-liferay-portals-portlet-api-implementation

      4.1 Add "javax.portlet.version=3.0" to BladeMessagePortlet.java
      4.2 Replace the "portlet" taglib declaration in init.jsp with:
      <%@ taglib uri="http://xmlns.jcp.org/portlet_3_0" prefix="portlet" %>
      5. Build the jar for :modules:configuration-action

      Or you can just deploy the jar file provided here.
      1. Spin up a clean instance of Liferay DXP 7.1 with fixpack 3
      2. Deploy the configuration-action bundle jar to the server.
      3. Navigate to the server in any web browser.
      4. Create a new Widget page, or find an existing page.
      5. Add in the "Blade Message Portlet" located under "Samples"
      6. Expect the portlet to render correctly.
      7. Expect that no error were outputted in the server console.
      8. Go to the configuration screen for "Blade Message Portlet"
      EXPECTED RESULTS
      the Configuration screen renders.
      ACTUAL RESULTS
      The Configuration screen does not render, and an error is outputted in the server console:

      Unable to include JSP /configuration.jsp
      org.apache.jasper.JasperException: java.lang.UnsupportedOperationException: Requires 3.0 opt-in
      Log with stack trace attached
      BRANCH
      Reproduced
      4af855594b31886e1da9c6c69f0cd3cc0d3ceefa

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  30 weeks, 1 day ago

                  Packages

                  Version Package
                  7.1.10 DXP FP9
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master