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?
Activate / deactivate primefaces for pages
- andyba
- Expert Member
- Posts: 2473
- Joined: 31 Mar 2011, 16:27
- Location: Steinfeld, near Bremen/Osnabrück, DE
- Contact:
Err, just use PrimeFaces in the new pages and don't change the old ones?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?
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
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
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?
- 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?
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
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.
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
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 74 guests