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

When portletId contains non alphanumeric characters is not recognized as embedded portlet

    Details

      Description

      When portletId contains non alphanumeric characters is not recognized as embedded portlet

      Steps to reproduce

      1. Start Liferay master.
      2. Create new theme.
      3. In your new theme modify portal_normal.ftl to add an embedded portlet in the header including a non alphanumeric character in the instanceId. For example: instanceId="group-Cdi-Button" this had two dashes.
      4. <@liferay_portlet["runtime"]
                    defaultPreferences="${freeMarkerPortletPreferences}"
                    portletProviderAction=portletProviderAction.VIEW
                    instanceId="group-Cdi-Button"
                    portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet" />
                    ${freeMarkerPortletPreferences.reset()}
        
      1. Compile and deploy your new theme.
      2. Login in Liferay.
      3. Enter in configure public pages and select your new theme.
      4. Create a new simple web content.
      5. Confirm that you have at least to pages.
      6. Go to main page.
      7. In portlet header add a web content.

       Expected behavior

      If you navigate between pages you see your web content in the header.

       Actual behavior

      You only see your web content in the page that you added the web content to.

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 weeks, 5 days ago