Forums de discussion
how to set a primefaces theme
Issam B, modifié il y a 11 années.
how to set a primefaces theme
New Member Publications: 11 Date d'inscription: 26/10/12 Publications récentes
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:
Help please
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
Neil Griffin, modifié il y a 11 années.
RE: how to set a primefaces theme (Réponse)
Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
I just tried one of the out-of-the-box PrimeFaces themes by adding the following dependency to the pom.xml descriptor of the primefaces3-portlet demo:
And the following markup to the WEB-INF/web.xml descriptor:
... and it worked OK. So I would recommend that you extract the contents of a JAR like cupertino-1.0.9.jar and verify that the format of your custom theme looks similar.
<dependency>
<groupid>org.primefaces.themes</groupid>
<artifactid>cupertino</artifactid>
<version>1.0.9</version>
</dependency>
And the following markup to the WEB-INF/web.xml descriptor:
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>cupertino</param-value>
</context-param>
... and it worked OK. So I would recommend that you extract the contents of a JAR like cupertino-1.0.9.jar and verify that the format of your custom theme looks similar.
Nagaraj Desingurajan, modifié il y a 10 années.
RE: how to set a primefaces theme
Junior Member Publications: 31 Date d'inscription: 21/02/11 Publications récentes
Hi Neil,
Been long time. Need you guidance urgently.
I use the same Liferay 6.1.0 in my local and in server box.
and I use the primefaces cupertino theme as below.
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>cupertino</param-value>
</context-param>
The issue is, it works in the local and not in the server box. The theme is not showing in the look and feel, in the server box.
Can you guide me on this. On what might be the reasons.
Thanks,
Nagaraj.
Been long time. Need you guidance urgently.
I use the same Liferay 6.1.0 in my local and in server box.
and I use the primefaces cupertino theme as below.
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>cupertino</param-value>
</context-param>
The issue is, it works in the local and not in the server box. The theme is not showing in the look and feel, in the server box.
Can you guide me on this. On what might be the reasons.
Thanks,
Nagaraj.
Juan Gonzalez, modifié il y a 10 années.
RE: how to set a primefaces theme
Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
Hi Nagaraj,
what is your Liferay configuration in server? I mean, do you have load balancer (Apache....) configured?
Did you add some virtualhost to the site where you added your portlet?
what is your Liferay configuration in server? I mean, do you have load balancer (Apache....) configured?
Did you add some virtualhost to the site where you added your portlet?