Page 1 of 2

Unable to find or serve resource

Posted: 30 Apr 2016, 15:59
by tuxotron
Hi,
after upgrading Primefaces from 5.3 to 6.0.RC1 or 6.0.RC2, I am getting these warnings in the logs:

WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-59) JSF1064: Unable to find or serve resource, primefaces.css, from library, primefaces.
WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-59) JSF1064: Unable to find or serve resource, primefaces.js, from library, primefaces.

I am using 6.0.RC1 in another projects with the community themes and I don't see these warnings, so I wonder is this has to do with the Modena theme?

PS: I am currently using modena 2.1.1.

Thanks

Re: Unable to find or serve resource

Posted: 02 May 2016, 08:57
by mert.sincan
We changed some ResourceDependency on PF6.0+. Therefore, please use the following ResourceDependency in ModenaMenu.java

Code: Select all

@ResourceDependency(library="primefaces", name="components.css"),
@ResourceDependency(library="primefaces", name="jquery/jquery.js"),
@ResourceDependency(library="primefaces", name="jquery/jquery-plugins.js"),
@ResourceDependency(library="primefaces", name="core.js"),
@ResourceDependency(library="primefaces", name="components.js")
instead of

Code: Select all

    @ResourceDependency(library = "primefaces", name = "primefaces.css"),
    @ResourceDependency(library = "primefaces", name = "jquery/jquery.js"),
    @ResourceDependency(library = "primefaces", name = "jquery/jquery-plugins.js"),
    @ResourceDependency(library = "primefaces", name = "primefaces.js")

Re: Unable to find or serve resource

Posted: 02 May 2016, 12:52
by tuxotron
Ok, I will try that out.

thanks!!

Re: Unable to find or serve resource

Posted: 02 May 2016, 13:21
by mert.sincan
You're welcome!

Re: Unable to find or serve resource

Posted: 18 May 2016, 12:00
by bacon88
I am use the RIO 3.1.1 how can i Find the file and modify it? I just found the RioMenu.class in the jar

Re: Unable to find or serve resource

Posted: 18 May 2016, 12:19
by mert.sincan
I think you can use RioMenu.java and RioMenuRenderer.java from our sample project in your project and change them. We fixed this issue for next release;
https://github.com/primefaces/layouts/issues/87

Re: Unable to find or serve resource

Posted: 19 May 2016, 11:36
by bacon88
aragorn wrote:I think you can use RioMenu.java and RioMenuRenderer.java from our sample project in your project and change them. We fixed this issue for next release;
https://github.com/primefaces/layouts/issues/87
when the new version release? I use the rio theme and layout .and just setup it into my project

Re: Unable to find or serve resource

Posted: 20 May 2016, 13:27
by mert.sincan
At the end of this month, we plan to publish it.

Re: Unable to find or serve resource

Posted: 24 May 2016, 12:09
by bacon88
aragorn wrote:At the end of this month, we plan to publish it.
thanks!

Re: Unable to find or serve resource

Posted: 24 May 2016, 12:24
by mert.sincan
You're welcome!