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

Errors in Portlet Embedding with Web Content

    Details

      Description

      Description
      An error occurs when editing content when embedding a portlet with web content.

      Steps to reproduce

      1. Navigate to Liferay > Content & Data > Web Content
      2. Add a structure as followings
        Name:portletEmbedderWC
        Fields:Text Box / Field Label:portlet_id
      3. Add a template using "portletEmbedderWC" and paste the following code
      <div id="AceJournal-Menu">
      <@liferay_portlet["runtime"]
          portletName="${portlet_id.getData()}"
           defaultPreferences="${freeMarkerPortletPreferences}"
          portletProviderAction=portletProviderAction.VIEW
          instanceId="uniquename1"
      />
      </div>
      
      1. Uncheck the "Cacheable" checkbox and Save
      1. Add a Web conten using "portletEmbedderWC" template as followings
        Title:portletEmbedderWC
        Body(portlet_id):com_liferay_journal_web_portlet_JournalPortlet
      2. Navigate to homepage and add a Web Content display portlet and select the web content created in step 6
      3. Edit the content and make sure it is editable

      Actual result
      "portletEmbedderWC is temporarily unavailable." is displayed.
       
      NPE is thrown in the log.

      2020-07-14 08:24:46.819 ERROR [http-nio-8080-exec-7][PortletServlet:119] javax.portlet.PortletException: javax.servlet.ServletException: java.lang.NullPointerException
      javax.portlet.PortletException: javax.servlet.ServletException: java.lang.NullPointerException

      Expected result
      Web content is editable.

       

      Note
      If Cacheable is checked, content is editable (layout is broken a little bit though).
      No errors on browser's console.

        Attachments

        1. ERROR.png
          ERROR.png
          122 kB
        2. Structure.png
          Structure.png
          248 kB
        3. Template.png
          Template.png
          315 kB

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            noor.najjar Noor Najjar
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              29 weeks, 3 days ago

                Packages

                Version Package
                7.2.10 DXP FP8
                7.2.10.2 DXP SP3
                7.2.X
                7.3.4 CE GA5
                7.3.5 CE GA6
                7.3.10 DXP GA1
                Master