PrimeFaces admin theme applies partially - primefaces

when applying the theme this has no color, it is white on all the pages of the project java ee
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>admin</param-value>
</context-param>
those two pages the color of the theme is white
https://imgur.com/a/4vLpteh
https://imgur.com/a/13O2ET9
add to the project admin-theme-1.0.0-RC15 and primefaces-6.2 but it does not work completely, what do I have to do to make this theme work full?

Related

Angular template theming

Within our application we're trying to achieve (html)templating based on themes. For example, if the specified theme is default, we should use the basic templates, but if the theme is 'coolTheme', all templates postfixed with '-coolTheme.html' should be used instead.
We have considered different solutions, but figured there must be a simple/default way to do this. These are the options we came up with:
Gulp task that puts all html files per theme in a {myTheme}-templates.js. When changing the theme angular resets the $templateCache, loads in the theme file and puts the templates in the $templateCache.
Gulp task that copies over all *-.myTheme.html to where the default templates should be (based on given theme parameter). Disadvantages are that you cannot change the theme on the fly.
Intercepting/decorating the $templateRequest, to check in a list/configuration file if the requested file is marked as 'themed', and then change the request to 'theFile-{myTheme}.html' instead
Which is the best way to handle this? And why? Does anyone have the 'perfect' solution for this?

Apply theme for some Primefaces components

I want to disable theme style for some Primefaces components. I tried this configuration:
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>none</param-value>
</context-param>
But I can't find any solution. Can you propose some alternative?

Running XHTML and HTML on the same page?

Is it possible to run html and xhtml on the same page? I am using jsf and need to integrate it in a template.
if you really need to give them the .html extension, then you'd need to change the default suffix to .html as well. Add the following entry to web.xml to achieve that:
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.html</param-value>
</context-param>

Primefaces 3.4: Setting up a theme

I'm new to primefaces.I want to set up a theme that i dowloaded from the primefaces site. I added this code to web.xml
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>casablanca</param-value>
</context-param>
and i put the casablanca.jar in the /web-inf/ directory but still doesn't work

how to set a primefaces theme in portlet project

I'm developing a portlet project with primefaces and I want to change the default theme.
I made a custom theme with jquery themeRoller and I made a jar file containing the theme as explained in the official documentation.
The problem is the css resource is not found :
Unable to find or serve resource, myTheme.css, from library, primefaces-myTheme.
NB: in web.xml I put:
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>myTheme</param-value>
</context-param>
Help please
Have you put your jar file in the 'lib' folder? Have you followed the theme directory structure properly? Check out this link.
http://chawi3.com/2012/05/18/add-custom-theme-primefaces/