All Primefaces javascript and css files with one url

UI Components for JSF
Post Reply
Mehmet Salgar
Posts: 26
Joined: 05 Aug 2010, 10:11

05 Nov 2010, 14:41

Hi everybody,

our web page gets bad scores from YSlow while Primefaces loads its resources with several requests....

I know that Richfaces with some configuration parameters and special urls it is possible to transfer all javascript and css with on web request...

Code: Select all

<context-param>
        <param-name>org.richfaces.LoadScriptStrategy</param-name>
        <param-value>NONE</param-value>
    </context-param>
    <context-param>
        <param-name>org.richfaces.LoadStyleStrategy</param-name>
        <param-value>NONE</param-value>
    </context-param>
and Url

Code: Select all

<link rel="stylesheet" type="text/css" href="/faces/rfRes/org/richfaces/skin.xcss"/>
<script src="/faces/rfRes/org/ajax4jsf/framework.pack.js" type="text/javascript"></script>
 <script src="/faces/rfRes/org/richfaces/ui.pack.js" type="text/javascript"></script>
Does such a functionality exist for Primefaces?

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

05 Nov 2010, 15:28

I don't believe this option exists today for PrimeFaces. It has been brought up before in the forum though.

mores
Posts: 64
Joined: 01 Dec 2010, 05:04

09 Dec 2011, 19:39

This might be a good fix in case resources do not load as intended.

I am currently throwing in many resources because a programatticly built menuBar is not being rendered.
prime faces 7.0.11
jsf 2.3.9
tomcat 9.0.50


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests