skip to main | skip to sidebar

Java Programs and Examples with Output

Pages

▼
 
  • RSS
  • Twitter
Sunday, October 7, 2012

Setting primefaces themes

Posted by Raju Gupta at 1:14 AM – 0 comments
 
This asset will help application to apply themes of their choice.


To apply themes in primefaces you need to add a jar theme-all.jar(can be downloaded from findjar.com)

Following entry needs to added in web.xml
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>cupertino</param-value>
</context-param>

Following entry need to be added in your layout page:
<link type="text/css" rel="stylesheet" href="#{request.contextPath}/themes/cupertino/skin.css"></link>



Leave a Reply

Newer Post Older Post
Subscribe to: Post Comments ( Atom )
  • Popular
  • Recent
  • Archives
Powered by Blogger.
 
 
 
© 2011 Java Programs and Examples with Output | Designs by Web2feel & Fab Themes

Bloggerized by DheTemplate.com - Main Blogger