Activate / deactivate primefaces for pages

UI Components for JSF
Post Reply
jwahler
Posts: 2
Joined: 11 Apr 2013, 13:43

11 Apr 2013, 13:54

Hi community,

I had an existing web application with myfaces (tomcat) and I want to extend this webapp with new pages.
The new pages should use primefaces and the old pages not because there are several problems with primefaces (tomahawk, layout, javascript).

How can I deactivate / activate primefaces for a list of pages?

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

11 Apr 2013, 16:15

jwahler wrote:Hi community,

I had an existing web application with myfaces (tomcat) and I want to extend this webapp with new pages.
The new pages should use primefaces and the old pages not because there are several problems with primefaces (tomahawk, layout, javascript).

How can I deactivate / activate primefaces for a list of pages?
Err, just use PrimeFaces in the new pages and don't change the old ones?
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

jwahler
Posts: 2
Joined: 11 Apr 2013, 13:43

12 Apr 2013, 09:41

This was my first plan but it doesn't work. There are several problems with the old pages:
- Tomahawk fails
- Javascript fails
- Layout problems
- Components fails
- maybe some further unknown problems

So I have to deactivate primefaces for the old pages.
Is there a possibility to add the old pages in a xml configuration file like web.xml or other file to deactivate primefaces?
Or maybe I can add something in the template of the old pages to deactivate primefaces?
Do you know a solution?

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

12 Apr 2013, 10:01

If you have no primefaces components on the page, no resources from primefaces will be included.
There is only one exception: The HeadRenderer. This will always include the primefaces theme. Maybe you can override it.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 74 guests