0
votes

I'm developing primefaces portlets on Liferay.

Setting a theme for a portlet seems to be easy. : You include a yourTheme.jar in WebInf/lib, and define :

<context-param>  
   <param-name>primefaces.THEME</param-name>  
   <param-value>yourTheme</param-value>  
</context-param>

in your web.xml

But what I would prefer to do, would be setting that theme for all the PrimeFaces portlets, in one central point (like a custom portal theme or some portal property). So that it effects the whole portal, not each individual portlet. What should be the best way to do that ?

Thanx!

I'm Using: Liferay 6.1.0 ce ga1. Primefaces 3.5 Jsf 2.1.3

1

1 Answers

1
votes

You should develop Liferay Themes and deploy them as war files in your application server.

Create pages and associate your Prime faces portlets with each pages.

Then apply the theme to your pages.

By applying theme to your pages, you can achieve applying theme to your Prime faces portlets.