Legacy Knowledge Base
Published Sep. 10, 2025

The first FreeMarker Engine entry in the list cannot be removed by a user interface control

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • FreeMarker Engine interface has 2 variables: 'Restricted classes' and 'Restricted variables'.
    Open user interface: Control Panel > System Settings> Template Engines > FreeMarker Engine (in DXP 7.4).
    • There is no UI control to remove the first item in the list. Unlike item number 2 and higher,
      the only way to remove the first item is to make it empty using [Backspace] to delete its value.
  • However, the side effect is that users end up with the value of 'Restricted classes' as:
    [, java.lang.ClassLoader, java.lang.Thread]
    where the first value is empty instead of the more reasonable value of:
    [java.lang.ClassLoader, java.lang.Thread]
    • The implementation of this UI is incomplete.

Environment

  • Liferay DXP 7.1
  • Liferay DXP 7.2
  • Liferay DXP 7.3
  • Liferay DXP 7.4

Resolution

  • The incomplete UI of the FreeMarker Engine is a known DXP bug that is being addressed by LPS-81539.

Additional Information

  • If the hotfix is required for this issue, please create a support ticket requesting the hotfix by attaching the patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to installation of the hotfix in the respective environment.
Did this article resolve your issue ?

Legacy Knowledge Base