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

As a Developer, I want to be able to use the new ClientEvents API from the Portlet 3.0 PortletHub JS API

    Details

      Description

      The Portlet Specification 3.0 includes a portlet hub JavaScript API to allow changing states and receiving change updates from other Portlets.

      This would allow for easier IPC implementations and more optimized SPA requests.

      Developers should be able to rely on a 100% compliant implementation of the PortletHub JS spec not only because of those but also for interop reasons.

      Below are the instructions to build and test the reference implementation:

      Here is the Portlet Client API JSDoc:
      https://portals.apache.org/pluto/portlet-3.0-apidocs/docfiles/jsdoc/index.html
      
      Portlet Client API source:
      https://github.com/apache/portals-pluto/blob/master/portlet-api/src/main/javascript/portlet.js
      
      JS Implementation:
      https://github.com/apache/portals-pluto/blob/master/pluto-portal/src/main/webapp/javascript/portletHubImpl.js
      
      You can build Apache Pluto from source like this:
      
              git clone https://github.com/apache/portals-pluto
              cd portals-pluto
              mvn clean install
              ant -f dist-build.xml -DincludeDemos=true
      
      That will create a file named target/dist/pluto-3.0.1-bundle.zip which is very similar to a Liferay+Tomcat bundle.
      
      After running tomcat/bin/startup.sh, login with:
              http://localhost:8080/pluto/portal
              Username: pluto
              Password: pluto
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                jose.balsas Chema Balsas
                Recent user:
                Jason Pince
                Participants of an Issue:
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  7.1.X
                  Master