- PrimeFaces Theme Development
- Andy Bailey Sudheer Jonna
- 201字
- 2021-07-09 21:12:23
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
推薦閱讀
- Boost程序庫完全開發指南:深入C++”準”標準庫(第5版)
- The Supervised Learning Workshop
- Drupal 8 Blueprints
- Mastering Adobe Captivate 2017(Fourth Edition)
- Building a Game with Unity and Blender
- x86匯編語言:從實模式到保護模式(第2版)
- Instant QlikView 11 Application Development
- Hands-On C++ Game Animation Programming
- 網站構建技術
- UML 基礎與 Rose 建模案例(第3版)
- 青少年學Python(第1冊)
- 細說Python編程:從入門到科學計算
- 移動增值應用開發技術導論
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- 高性能PHP 7