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

Application display templates don't set correct templateName for freemarker template

    Details

      Description

      The ADT framework uses ddmTemplate is used to create a templateResource, the resourceId will be invalid. Instead of having the form of groupId#companyGroupId#templateId, it will always be groupId#companyGroupId#null

      This is because in /portal-master/portal-impl/src/com/liferay/portal/templateparser/Transformer.java line 129 the templateId is set to a value that is obtained from the current context key "template_id".

      For WCM templates this will contain the templateKey from the database for the linked ddmTemplate. But for ADT templates, the value will always be "null". So the final version of the templateResourceId is groupId#companyGroupId#null.

      This makes it impossible for Liferay IDE's freemarker debugger to be able to set remote breakpoints since it can't properly identifiy the templateResourceId's ahead of time to install remote breakpoints.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              gregory.amerson Gregory Amerson
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 41 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.0 CE M6