<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118231750" />
  <subtitle>FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118231750</id>
  <updated>2026-04-04T06:42:58Z</updated>
  <dc:date>2026-04-04T06:42:58Z</dc:date>
  <entry>
    <title>RE: FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118288201" />
    <author>
      <name>Alberto Chaparro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118288201</id>
    <updated>2020-01-16T17:36:50Z</updated>
    <published>2020-01-16T17:36:50Z</published>
    <summary type="html">Great!&lt;br /&gt;Thanks Alessandro for documenting it :-)</summary>
    <dc:creator>Alberto Chaparro</dc:creator>
    <dc:date>2020-01-16T17:36:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118285273" />
    <author>
      <name>Alessandro Candini</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118285273</id>
    <updated>2020-01-16T08:31:53Z</updated>
    <published>2020-01-16T08:31:53Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Alberto, I've solved in this way:&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;lt;#assign STATUS_APPROVED = staticFieldGetter.getFieldValue("com.liferay.portal.kernel.workflow.WorkflowConstants", "STATUS_APPROVED")/&amp;amp;gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Alessandro Candini</dc:creator>
    <dc:date>2020-01-16T08:31:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118243068" />
    <author>
      <name>Alberto Chaparro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118243068</id>
    <updated>2020-01-09T22:51:18Z</updated>
    <published>2020-01-09T22:51:18Z</published>
    <summary type="html">Hi Alessandro,&lt;br /&gt;Can you try with other classes in portal-kernel? it seems that the template can&amp;#39;t see this jar somehow.</summary>
    <dc:creator>Alberto Chaparro</dc:creator>
    <dc:date>2020-01-09T22:51:18Z</dc:date>
  </entry>
  <entry>
    <title>FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118231749" />
    <author>
      <name>Alessandro Candini</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118231749</id>
    <updated>2020-01-09T11:03:39Z</updated>
    <published>2020-01-09T11:03:39Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi everyone!&lt;br&gt;On Liferay 7.2.0 CE GA1, inside a Web Content Template we had the following import of static constants:&lt;br&gt;&lt;pre&gt;&lt;code&gt;WorkflowConstants = staticUtil["com.liferay.portal.kernel.workflow.WorkflowConstants"]
&lt;/code&gt;&lt;/pre&gt;After an upgrade to Liferay 7.2.1 CE GA2, this snippets does not work anymore and the error reported is the following:&lt;br&gt;&lt;pre&gt;&lt;code&gt;java.lang.ClassNotFoundException: com.liferay.portal.kernel.workflow.WorkflowConstants cannot be found by com.liferay.portal.template.freemarker_5.0.16
&lt;/code&gt;&lt;/pre&gt;With other imports, for example &lt;pre&gt;&lt;code&gt; WindowState = staticUtil["javax.portlet.WindowState"]&lt;/code&gt;&lt;/pre&gt;, everything seems working as before, we got this error only for WorkflowConstants.&lt;br&gt;Any ideas or workaround on how to solve this?&lt;br&gt;Thank you.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Alessandro Candini</dc:creator>
    <dc:date>2020-01-09T11:03:39Z</dc:date>
  </entry>
</feed>
