- 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
推薦閱讀
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- 騰訊iOS測(cè)試實(shí)踐
- JavaScript 程序設(shè)計(jì)案例教程
- Instant Nancy Web Development
- C++從入門到精通(第5版)
- Extreme C
- 打開(kāi)Go語(yǔ)言之門:入門、實(shí)戰(zhàn)與進(jìn)階
- RubyMotion iOS Develoment Essentials
- Android Studio Cookbook
- MyBatis 3源碼深度解析
- Mastering SciPy
- Neo4j 3.x入門經(jīng)典
- 交互設(shè)計(jì)師成長(zhǎng)手冊(cè):從零開(kāi)始學(xué)交互
- Kotlin語(yǔ)言實(shí)例精解
- 大話程序員:從入門到優(yōu)秀全攻略