Change in behavior in Freemarker portlet 7.0E GA1 to 7.3.2 ga3Change in behavior in Freemarker portlet 7.0E GA1 to 7.3.2 ga3https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1193998922024-03-29T11:11:38Z2024-03-29T11:11:38ZRE: Change in behavior in Freemarker portlet 7.0E GA1 to 7.3.2 ga3Pete Helgrenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1194545102020-06-20T18:56:30Z2020-06-20T18:56:30ZI am going to reply to myself here. I am not exactly sure how this was sorted out. It may have been a result for running a clean and then deploy but I have to admit it was very strange while I was trying to sort it out.<br />In any case except for the clean and it also looks like I moved the templates folder out of META-INF/resources and back to src/main/resources. Maybe that fixed it. Maybe it was something elsePete Helgren2020-06-20T18:56:30ZChange in behavior in Freemarker portlet 7.0E GA1 to 7.3.2 ga3Pete Helgrenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1193998912020-06-15T18:21:30Z2020-06-15T18:21:30Z<html><head></head><body>I have a Freemarker portlet that works fine when deployed to 7.3.0 ga1 but seems to be missing css, template and javascript references when deployed to 7.3.2 ga3. Nothing unusual in coding. The portlet code uses references like:<br><pre><code>com.liferay.portlet.header-portlet-css=/css/main.css</code></pre> <br>for css and <pre><code>com.liferay.portlet.footer-portlet-javascript=/js/classlist.js</code></pre><br>when referencing JavaScript I set my template path to "/". I do use an "include" statement to select between two different templates in the actual portket code like so (which works when deployed to 7.3.0)<br><br><pre><code>&nbsp;&nbsp; &nbsp;// The basic logic here is that when we have a single portlet with multiple pages&nbsp;
&nbsp;&nbsp; &nbsp;// We need to make a decision about which page to display hence the use of "render"
&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp; &nbsp;@Override
&nbsp;&nbsp; &nbsp;public void render(RenderRequest request, RenderResponse response)
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;throws PortletException, IOException {
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;HttpServletRequest h2request = PortalUtil.getHttpServletRequest(request);
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;HttpServletRequest orequest = PortalUtil.getOriginalServletRequest(h2request);
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;String param = StringUtils.checkNull(orequest.getParameter("processmode"));
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; if(param.length()&gt;0 &amp;&amp; param.equals("classlist")) &nbsp;&nbsp;
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; include("/templates/classinfo.ftl", request, response);
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; else
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; include("/templates/members.ftl", request, response);
&nbsp;&nbsp; &nbsp;}</code></pre><br>But what I see in the dev studio console when debugging is: <br>2020-06-15 13:03:56.732 ERROR [http-nio-9080-exec-7][FreeMarkerPortlet:81] /templates/members.ftl is not a valid include<br>2020-06-15 13:03:57.023 WARN [http-nio-9080-exec-10][code_jsp:173] {code="404", msg="Not Found", uri=/o/org.mydomain.myportlet/css/main.css}<br><br>I also don't see any of my JavaScript in the source view in the browser console. It's almost as though the base reference to the Freemarker portlet isn't correct. I checked for breaking changes and I really didn't see anything that might cause this behavior. Is there anyone else out there using Freemarker as the view and experiencing something like this?&am