<?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>Static Resources and Style not loaded correctly</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119820651" />
  <subtitle>Static Resources and Style not loaded correctly</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119820651</id>
  <updated>2026-04-05T04:16:42Z</updated>
  <dc:date>2026-04-05T04:16:42Z</dc:date>
  <entry>
    <title>Static Resources and Style not loaded correctly</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119820650" />
    <author>
      <name>Alex Pasquini</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119820650</id>
    <updated>2020-08-23T13:03:33Z</updated>
    <published>2020-08-23T13:03:33Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Dear all,&lt;br&gt;&lt;br&gt;I'm developing portlet using Primefaces 7 on liferay 7.3 GA1 CE.&lt;br&gt;When portlets are loaded, at the beginning, all the static resources are shown, even if they should be hidden.&lt;br&gt;Even the modals which would be triggered from button are shown.&lt;br&gt;Moreover I can see the portlet content without style.&lt;br&gt;After few seconds, portlets are shown correctly.&lt;br&gt;This problem appears on every browser except firefox. From mobile, i'm using Chrome and Safari on iPhone, and portlets are shown correctly.&lt;br&gt;At the beginning, when I load the page, I see the following screen:&lt;br&gt;&lt;img src="/documents/portlet_file_entry/14/immagine--tempRandomSuffix--RWNnygfI.png/2b330a29-24f7-47f2-6447-5ab898338ea0"&gt;&lt;br&gt;After few seconds, I see the following:&lt;br&gt;&lt;img src="/documents/portlet_file_entry/14/immagine--tempRandomSuffix--e9UlcXZP.png/7f830032-1764-61d9-6251-abf0559953a7"&gt;&lt;br&gt;On my portlets, on web.xml, I have the following settings:&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;context-param&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;param-name&amp;gt;javax.faces.PROJECT_STAGE&amp;lt;/param-name&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;param-value&amp;gt;Production&amp;lt;/param-value&amp;gt;
&amp;lt;/context-param&amp;gt;
&amp;lt;!-- JSF 2.2 now allows for composite components and resources to be hidden
&amp;nbsp;&amp;nbsp; &amp;nbsp;under WEB-INF --&amp;gt;
&amp;lt;context-param&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;param-name&amp;gt;javax.faces.WEBAPP_RESOURCES_DIRECTORY&amp;lt;/param-name&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;param-value&amp;gt;/WEB-INF/resources&amp;lt;/param-value&amp;gt;
&amp;lt;/context-param&amp;gt;
&amp;lt;context-param&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;param-name&amp;gt;com.sun.faces.defaultResourceMaxAge&amp;lt;/param-name&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;param-value&amp;gt;2592000000&amp;lt;/param-value&amp;gt; &amp;lt;!-- 30 days --&amp;gt;
&amp;lt;/context-param&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Have you ever experienced this problem?&lt;br&gt;How did you solve it? Can you please support me?&lt;br&gt;If you need further information, don't hesitate to ask me.&lt;br&gt;Thank you in advance.&lt;br&gt;Best regards,&lt;br&gt;&lt;br&gt;Alex&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Alex Pasquini</dc:creator>
    <dc:date>2020-08-23T13:03:33Z</dc:date>
  </entry>
</feed>
