Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build custom themes for Primefaces?

Tags:

jsf

primefaces

How do I build custom themes for primefaces ? Can I do it using themeroller ?

like image 470
Rajat Gupta Avatar asked Jun 07 '11 17:06

Rajat Gupta


4 Answers

See the primfaces website ( http://www.primefaces.org/themes.html ) to make your theme in themeroller then download it.

See this video, also: http://vimeo.com/14235640

like image 137
samimvp Avatar answered Nov 07 '22 19:11

samimvp


Found this online tool for converting themeroller zip to primefaces jar, with instructions for maven usage: https://themeroller.osnode.com/

like image 29
hjelperne Avatar answered Nov 07 '22 20:11

hjelperne


you can use PrimeFaces Theme Converter http://www.pftc.de

it works with jquery-ui-1.10.3

like image 35
Prog3 Avatar answered Nov 07 '22 19:11

Prog3


see this website http://jqueryui.com/ If you want to make custom theme select theme in task bar and go to theme roller 1.select Roll Your Own button and then make a changes as your need. 2.If you want to use existing theme and you want to change the color means select gallery button i)select a favorite themeii)Edit a theme changes the coloriii)Download theme Finally you get a zip file.Extract a zip file it contains image folder and css file. Copy image and css file.Put images in web content/common/images folder and css file into web content/resources/css. Finally use this link to display your custom theme use the css file

    <link href="./resources/css/example.css" rel="stylesheet" type="text/css" />
like image 21
Arun Raj Avatar answered Nov 07 '22 19:11

Arun Raj