Page 1 of 1

Unable to find or serve resource primefaces.css

Posted: 17 Feb 2017, 08:51
by doons
Hello,

I have this warning when deploying my app on glassfish 4.0 server (with the primefaces-sentinel 2.0 jar) :
Unable to find or serve resource, primefaces.css, from the primefaces library
Unable to find or serve resource, primefaces.js, from the primefaces library
But I don't know what to do :oops:

Could someone help me to fix this warning ?
Thanks for your help

Re: Unable to find or serve resource primefaces.css

Posted: 21 Feb 2017, 11:53
by mert.sincan
What PF-version are you using?

Please see '5.3 to 6.0' section; https://github.com/primefaces/primeface ... tion-Guide

Re: Unable to find or serve resource primefaces.css

Posted: 21 Feb 2017, 12:23
by doons
Thank you for your response.

I'm using PF 6.0.
I don't have the source code to change
@ResourceDependency(library="primefaces", name="primefaces.js")
to
@ResourceDependency(library="primefaces", name="core.js"), @ResourceDependency(library="primefaces", name="components.js")
or I don't know where I can change that.

Re: Unable to find or serve resource primefaces.css

Posted: 22 Feb 2017, 12:08
by mert.sincan
We have the following github issue related to this topic; https://github.com/primefaces/layouts/issues/87

Can you please try this issue after updating Sentinel version? Also, do you add primefaces.css or primefaces.js to a page?

Re: Unable to find or serve resource primefaces.css

Posted: 23 Feb 2017, 08:32
by doons
Ok, now I'm using sentinel-theme-2.1.2.jar.
I don't add primefaces.css nor primefaces.js to a page

I'm sorry but I don't understand how github issue works :oops:
What I can see on this page is
with 6.0 and 5.x
and 2 references
PrimeFaces 6.0 Modena Bug: primefaces.css/js not found primefaces/primefaces#1509
Closed
Primefaces 6 Calendar Bug primefaces/primefaces#1506
How can I try this issue ? What I have to do ?

Thnaks

Re: Unable to find or serve resource primefaces.css

Posted: 07 Mar 2017, 15:51
by mert.sincan
I think you can examine processEvent method in SentinelMenu.java. We add resources according to PrimeFaces version.