Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-73282 Implement Portlet 3.0
  3. LPS-75948

Portlet 3.0: Detect portlet spec version found in the portlet.xml descriptor

    Details

      Description

      This task involves adding the ability to detect the portlet spec version found in the portlet.xml descriptor. This is necessary because several features of Portlet 3.0 are "opt-in", meaning they are not enabled unless the @PortletApplication annotation or portlet.xml descriptor specifies version 3.0:

      MyStandardPortlet.java
      @PortletApplication(version="3.0") // 3.0 is the default for this annotation attribute
      @PortletConfiguration(portletName="myPortlet")
      public class MyPortlet {
          ...
      }
      
      MyDeclarativeServicesPortlet.java
      @Component(properties="javax.portlet.version=3.0", service=javax.portlet.Portlet.class)
      public class MyDeclarativeServicesPortlet {
          ...
      }
      
      "portlet.xml"
      <?xml version="1.0"?>
      
      <portlet-app xmlns="http://xmlns.jcp.org/xml/ns/portlet"
      			 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      			 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/portlet http://xmlns.jcp.org/xml/ns/portlet/portlet-app_3_0.xsd"
      			 version="3.0">
      	...
      </portlet-app>
      

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              neil.griffin Neil Griffin
              Recent user:
              Csaba Turcsan
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 44 weeks, 4 days ago

                Packages

                Version Package
                7.1.10 DXP FP1
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master