官术网_书友最值得收藏!

Chapter 2. Introducing PrimeFaces Themes

In order to be able to experience using JSF and the PrimeFaces library, we are going to continue our work from the last chapter and add to the PFThemes project. By the end of this chapter, you will have a deeper understanding of how even a simple JSF application can be greatly enriched by using PrimeFaces components in it. In particular, I will demonstrate how PrimeFaces provides a powerful themes framework.

In this chapter, we will cover the following topics:

  • The difference between standard JSF and PrimeFaces components
  • Adding additional themes to the project
  • Changing the theme used by the project
  • Displaying the name of the theme used by the project
  • Adding some classes to allow us to use the ThemeSwitcher component
  • Changing web.xml so that it supports dynamic themes
  • Creating a Facelets Template and adding a menu for navigation and a ThemeSwitcher to it
  • Creating a page that uses this template and adding some components to it
  • Adding a link to this page in the template
  • Displaying the name of the theme that is currently being used in the template
  • Adding some buttons to the page to switch themes without using the ThemeSwitcher
主站蜘蛛池模板: 梅州市| 柳江县| 北安市| 洮南市| 静海县| 四会市| 东乡族自治县| 新化县| 武山县| 枝江市| 巧家县| 台中县| 西乌| 龙口市| 仁化县| 黔江区| 射洪县| 黔江区| 永春县| 荣成市| 义马市| 乡城县| 克拉玛依市| 三穗县| 图片| 天峨县| 左权县| 区。| 平昌县| 衡阳县| 长治县| 宁波市| 米泉市| 重庆市| 古交市| 遂溪县| 乌海市| 阿克陶县| 馆陶县| 宾川县| 汕头市|