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

Nested portlet doesn't support Freemarker code inside layout template

    Details

      Description

      When a layout page template uses freemarker syntax and is applied to nested portlet, errors appear in log.

      Reproduction steps:
      1. Create freemarker layout that creates a new variable and make something using a freemarker if statement and deploy it, inside the statement, set a new variable that prints "hello"
      2. Add a nested portlet to a test page
      3. Open the configuration of nested portlet and change layout to the new Freemarker layout
      4. Observe the log for the exception

      Expected behaviour:

      The layout is processed and shows "hello"

      Actual behaviour:

      The exception shows a TemplateException caused by a ParseException as if the template were being processed with Velocity instead of Freemarker.

      Can reproduce it on 7.1.x da92690e22b2eb998cd4961ac3908754b2144d47 
      Can reproduce it on master 2d6d860b8dcae0c13cdf8579d18ea89ceda2dd46

        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:
                  1 year, 8 weeks, 1 day ago

                  Packages

                  Version Package
                  7.1.3 CE GA4
                  7.1.10 DXP FP11
                  7.1.X
                  Master