Page 1 of 1

Missing Class from primefaces jar please help

Posted: 28 Dec 2017, 22:32
by markorocko1
I was trying to look at the primefaces showcase calendar example(https://www.primefaces.org/showcase/ui/ ... ndar.xhtml CalendarView.java) but couldn't find this import import org.primefaces.PrimeFaces;
Wheres the Class file?
Its not in the primefaces-6.1 .jar

Re: Missing Class from primefaces jar please help

Posted: 29 Dec 2017, 11:25
by Jan Eckert
Hi!

Your finding is correct. org.primefaces.PrimeFaces is not part of PrimeFaces 6.1

But the Showcase is running on PrimeFaces 6.2-SNAPSHOT (as you can see in the POM on GitHub https://github.com/primefaces/showcase/ ... er/pom.xml or by going to the Showcase on the web https://www.primefaces.org/showcase/index.xhtml and scrolling to the bottom right.

When you look into the code https://github.com/primefaces/primeface ... primefaces you can see the new class that is missing in your project because of the wrong version.


To fix this: Since 6.2-SNAPSHOT is published neither on Maven central nor the Primefaces repo, check it out from Github, build it yourself with 'mvn install' and your maven project can access the SNAPSHOT version from your local maven repository. In case of questions, shoot!

(complementary question: Is there a snapshat repo of PF I am not aware of?)

Re: Missing Class from primefaces jar please help

Posted: 29 Dec 2017, 11:53
by kukeltje
Jan Eckert wrote:
29 Dec 2017, 11:25
(complementary question: Is there a snapshat repo of PF I am not aware of?)
No there is not (unfortunately not)...

(To prevent answering wrongly I assume with 'snapshat' you meant snapshot and not snapchat ;) )

Re: Missing Class from primefaces jar please help

Posted: 29 Dec 2017, 12:55
by tandraschko
"PrimeFaces" is just a new end-user utility instead of the old RequestContext. So you can still find every method in RequestContext, maybe just with a little bit different name. REquestContext will be refactored in 6.3.